1 ; Copyright (C) 2008 The Android Open Source Project 2 ; 3 ; Licensed under the Apache License, Version 2.0 (the "License"); 4 ; you may not use this file except in compliance with the License. 5 ; You may obtain a copy of the License at 6 ; 7 ; http://www.apache.org/licenses/LICENSE-2.0 8 ; 9 ; Unless required by applicable law or agreed to in writing, software 10 ; distributed under the License is distributed on an "AS IS" BASIS, 11 ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 ; See the License for the specific language governing permissions and 13 ; limitations under the License. 14 15 .source T_monitor_enter_2.java 16 .class public dot.junit.opcodes.monitor_enter.d.T_monitor_enter_2 17 .super java/lang/Object 18 19 .field private flg I 20 .field public result Z 21 22 .method public <init>()V 23 .limit regs 4 24 25 invoke-direct {v3}, java/lang/Object/<init>()V 26 27 const/4 v2, 0 28 iput v2, v3, dot.junit.opcodes.monitor_enter.d.T_monitor_enter_2.flg I 29 30 const/4 v2, 1 31 iput-boolean v2, v3, dot.junit.opcodes.monitor_enter.d.T_monitor_enter_2.result Z 32 return-void 33 .end method 34 35 .method public run(I)V 36 .limit regs 10 37 38 monitor-enter v8 39 Label13: 40 monitor-enter v8 41 Label14: 42 43 iput v9, v8, dot.junit.opcodes.monitor_enter.d.T_monitor_enter_2.flg I 44 45 Label16: 46 monitor-exit v8 47 Label20: 48 49 const-wide/16 v4, 500 50 51 Label22: 52 invoke-static {v4, v5}, java/lang/Thread/sleep(J)V 53 Label23: 54 55 iget v1, v8, dot.junit.opcodes.monitor_enter.d.T_monitor_enter_2.flg I 56 57 if-eq v1, v9, Label35 58 59 const/4 v5, 0 60 iput-boolean v5, v8, dot.junit.opcodes.monitor_enter.d.T_monitor_enter_2.result Z 61 62 Label35: 63 monitor-exit v8 64 Label37: 65 return-void 66 67 68 Label46: 69 move-exception v4 70 71 const/4 v6, 0 72 iput-boolean v6, v8, dot.junit.opcodes.monitor_enter.d.T_monitor_enter_2.result Z 73 74 monitor-exit v8 75 Label53: 76 throw v4 77 78 .catch all from Label13 to Label14 using Label46 79 .catch all from Label16 to Label20 using Label46 80 .catch all from Label22 to Label23 using Label46 81 .catch all from Label35 to Label37 using Label46 82 .catch all from Label46 to Label53 using Label46 83 .end method 84 85 86