| # Copyright (C) 2008 The Android Open Source Project |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| .source "T_monitor_enter_2.java" |
| .class public Ldot/junit/opcodes/monitor_enter/d/T_monitor_enter_2; |
| .super Ljava/lang/Object; |
| |
| .field private flg:I |
| .field public result:Z |
| |
| .method public constructor <init>()V |
| .registers 4 |
| |
| invoke-direct {v3}, Ljava/lang/Object;-><init>()V |
| |
| const/4 v2, 0 |
| iput v2, v3, Ldot/junit/opcodes/monitor_enter/d/T_monitor_enter_2;->flg:I |
| |
| const/4 v2, 1 |
| iput-boolean v2, v3, Ldot/junit/opcodes/monitor_enter/d/T_monitor_enter_2;->result:Z |
| return-void |
| .end method |
| |
| .method public run(I)V |
| .registers 10 |
| |
| monitor-enter v8 |
| :Label13 |
| monitor-enter v8 |
| :Label14 |
| |
| iput v9, v8, Ldot/junit/opcodes/monitor_enter/d/T_monitor_enter_2;->flg:I |
| |
| :Label16 |
| monitor-exit v8 |
| :Label20 |
| |
| const-wide/16 v4, 500 |
| |
| :Label22 |
| invoke-static {v4, v5}, Ljava/lang/Thread;->sleep(J)V |
| :Label23 |
| |
| iget v1, v8, Ldot/junit/opcodes/monitor_enter/d/T_monitor_enter_2;->flg:I |
| |
| if-eq v1, v9, :Label35 |
| |
| const/4 v5, 0 |
| iput-boolean v5, v8, Ldot/junit/opcodes/monitor_enter/d/T_monitor_enter_2;->result:Z |
| |
| :Label35 |
| monitor-exit v8 |
| :Label37 |
| return-void |
| |
| |
| :Label46 |
| move-exception v4 |
| |
| const/4 v6, 0 |
| iput-boolean v6, v8, Ldot/junit/opcodes/monitor_enter/d/T_monitor_enter_2;->result:Z |
| |
| monitor-exit v8 |
| :Label53 |
| throw v4 |
| |
| .catchall {:Label13 .. :Label14} :Label46 |
| .catchall {:Label16 .. :Label20} :Label46 |
| .catchall {:Label22 .. :Label23} :Label46 |
| .catchall {:Label35 .. :Label37} :Label46 |
| .catchall {:Label46 .. :Label53} :Label46 |
| .end method |
| |
| |