public class sun.tools.jconsole.Worker extends java.lang.Thread
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.tools.jconsole.Worker
super_class: java.lang.Thread
{
java.util.ArrayList<java.lang.Runnable> jobs;
descriptor: Ljava/util/ArrayList;
flags: (0x0000)
Signature: Ljava/util/ArrayList<Ljava/lang/Runnable;>;
private boolean stopped;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.StringBuilder
dup
ldc "Worker-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.Thread.<init>:(Ljava/lang/String;)V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield sun.tools.jconsole.Worker.jobs:Ljava/util/ArrayList;
2: aload 0
iconst_0
putfield sun.tools.jconsole.Worker.stopped:Z
3: aload 0
iconst_4
invokevirtual sun.tools.jconsole.Worker.setPriority:(I)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/tools/jconsole/Worker;
0 5 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: goto 15
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.tools.jconsole.Worker.jobs:Ljava/util/ArrayList;
dup
astore 2
monitorenter
2: goto 6
3: StackMap locals: sun.tools.jconsole.Worker top java.util.ArrayList
StackMap stack:
aload 0
getfield sun.tools.jconsole.Worker.jobs:Ljava/util/ArrayList;
invokevirtual java.lang.Object.wait:()V
4: goto 6
StackMap locals:
StackMap stack: java.lang.InterruptedException
5: pop
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.tools.jconsole.Worker.isStopped:()Z
ifne 7
aload 0
getfield sun.tools.jconsole.Worker.jobs:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
ifeq 3
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.tools.jconsole.Worker.isStopped:()Z
ifeq 9
aload 2
monitorexit
8: goto 16
9: StackMap locals:
StackMap stack:
aload 0
getfield sun.tools.jconsole.Worker.jobs:Ljava/util/ArrayList;
iconst_0
invokevirtual java.util.ArrayList.remove:(I)Ljava/lang/Object;
checkcast java.lang.Runnable
astore 1
start local 1 10: aload 2
monitorexit
11: goto 14
end local 1 StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 2
monitorexit
13: athrow
start local 1 14: StackMap locals: sun.tools.jconsole.Worker java.lang.Runnable
StackMap stack:
aload 1
invokeinterface java.lang.Runnable.run:()V
end local 1 15: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.tools.jconsole.Worker.isStopped:()Z
ifeq 1
16: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/tools/jconsole/Worker;
10 12 1 job Ljava/lang/Runnable;
14 15 1 job Ljava/lang/Runnable;
Exception table:
from to target type
3 4 5 Class java.lang.InterruptedException
2 8 12 any
9 11 12 any
12 13 12 any
private synchronized boolean isStopped();
descriptor: ()Z
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.tools.jconsole.Worker.stopped:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/jconsole/Worker;
public synchronized void stopWorker();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
iconst_1
putfield sun.tools.jconsole.Worker.stopped:Z
1: aload 0
getfield sun.tools.jconsole.Worker.jobs:Ljava/util/ArrayList;
dup
astore 1
monitorenter
2: aload 0
getfield sun.tools.jconsole.Worker.jobs:Ljava/util/ArrayList;
invokevirtual java.lang.Object.notify:()V
3: aload 1
monitorexit
4: goto 7
StackMap locals: sun.tools.jconsole.Worker java.util.ArrayList
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/tools/jconsole/Worker;
Exception table:
from to target type
2 4 5 any
5 6 5 any
public void add(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.tools.jconsole.Worker.jobs:Ljava/util/ArrayList;
dup
astore 2
monitorenter
1: aload 0
getfield sun.tools.jconsole.Worker.jobs:Ljava/util/ArrayList;
aload 1
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
2: aload 0
getfield sun.tools.jconsole.Worker.jobs:Ljava/util/ArrayList;
invokevirtual java.lang.Object.notify:()V
3: aload 2
monitorexit
4: goto 7
StackMap locals: sun.tools.jconsole.Worker java.lang.Runnable java.util.ArrayList
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/tools/jconsole/Worker;
0 8 1 job Ljava/lang/Runnable;
Exception table:
from to target type
1 4 5 any
5 6 5 any
MethodParameters:
Name Flags
job
public boolean queueFull();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.tools.jconsole.Worker.jobs:Ljava/util/ArrayList;
dup
astore 1
monitorenter
1: aload 0
getfield sun.tools.jconsole.Worker.jobs:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
ifle 2
iconst_1
goto 3
StackMap locals: java.util.ArrayList
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: aload 1
monitorexit
4: ireturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
6: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/tools/jconsole/Worker;
Exception table:
from to target type
1 4 5 any
5 6 5 any
}
SourceFile: "Worker.java"