public class sun.jvm.hotspot.runtime.Threads
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.runtime.Threads
super_class: java.lang.Object
{
private static sun.jvm.hotspot.runtime.JavaThreadFactory threadFactory;
descriptor: Lsun/jvm/hotspot/runtime/JavaThreadFactory;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.jvm.hotspot.types.AddressField threadListField;
descriptor: Lsun/jvm/hotspot/types/AddressField;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.jvm.hotspot.runtime.VirtualConstructor virtualConstructor;
descriptor: Lsun/jvm/hotspot/runtime/VirtualConstructor;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.jvm.hotspot.runtime.JavaThreadPDAccess access;
descriptor: Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.jvm.hotspot.runtime.ThreadsList _list;
descriptor: Lsun/jvm/hotspot/runtime/ThreadsList;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new sun.jvm.hotspot.runtime.Threads$1
dup
invokespecial sun.jvm.hotspot.runtime.Threads$1.<init>:()V
invokestatic sun.jvm.hotspot.runtime.VM.registerVMInitializedObserver:(Lsun/jvm/hotspot/utilities/Observer;)V
1: return
LocalVariableTable:
Start End Slot Name Signature
private static synchronized void initialize(sun.jvm.hotspot.types.TypeDataBase);
descriptor: (Lsun/jvm/hotspot/types/TypeDataBase;)V
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
ldc "ThreadsSMRSupport"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupType:(Ljava/lang/String;)Lsun/jvm/hotspot/types/Type;
astore 1
start local 1 1: aload 1
ldc "_java_thread_list"
invokeinterface sun.jvm.hotspot.types.Type.getAddressField:(Ljava/lang/String;)Lsun/jvm/hotspot/types/AddressField;
putstatic sun.jvm.hotspot.runtime.Threads.threadListField:Lsun/jvm/hotspot/types/AddressField;
2: invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
invokevirtual sun.jvm.hotspot.runtime.VM.getOS:()Ljava/lang/String;
astore 2
start local 2 3: invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
invokevirtual sun.jvm.hotspot.runtime.VM.getCPU:()Ljava/lang/String;
astore 3
start local 3 4: aconst_null
putstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
5: aload 2
ldc "win32"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
6: aload 3
ldc "x86"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
7: new sun.jvm.hotspot.runtime.win32_x86.Win32X86JavaThreadPDAccess
dup
invokespecial sun.jvm.hotspot.runtime.win32_x86.Win32X86JavaThreadPDAccess.<init>:()V
putstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
8: goto 49
StackMap locals: sun.jvm.hotspot.types.Type java.lang.String java.lang.String
StackMap stack:
9: aload 3
ldc "amd64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
10: new sun.jvm.hotspot.runtime.win32_amd64.Win32AMD64JavaThreadPDAccess
dup
invokespecial sun.jvm.hotspot.runtime.win32_amd64.Win32AMD64JavaThreadPDAccess.<init>:()V
putstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
11: goto 49
StackMap locals:
StackMap stack:
12: aload 3
ldc "aarch64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 49
13: new sun.jvm.hotspot.runtime.win32_aarch64.Win32AARCH64JavaThreadPDAccess
dup
invokespecial sun.jvm.hotspot.runtime.win32_aarch64.Win32AARCH64JavaThreadPDAccess.<init>:()V
putstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
14: goto 49
StackMap locals:
StackMap stack:
15: aload 2
ldc "linux"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 39
16: aload 3
ldc "x86"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 19
17: new sun.jvm.hotspot.runtime.linux_x86.LinuxX86JavaThreadPDAccess
dup
invokespecial sun.jvm.hotspot.runtime.linux_x86.LinuxX86JavaThreadPDAccess.<init>:()V
putstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
18: goto 49
StackMap locals:
StackMap stack:
19: aload 3
ldc "amd64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 22
20: new sun.jvm.hotspot.runtime.linux_amd64.LinuxAMD64JavaThreadPDAccess
dup
invokespecial sun.jvm.hotspot.runtime.linux_amd64.LinuxAMD64JavaThreadPDAccess.<init>:()V
putstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
21: goto 49
StackMap locals:
StackMap stack:
22: aload 3
ldc "ppc64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 25
23: new sun.jvm.hotspot.runtime.linux_ppc64.LinuxPPC64JavaThreadPDAccess
dup
invokespecial sun.jvm.hotspot.runtime.linux_ppc64.LinuxPPC64JavaThreadPDAccess.<init>:()V
putstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
24: goto 49
StackMap locals:
StackMap stack:
25: aload 3
ldc "aarch64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 28
26: new sun.jvm.hotspot.runtime.linux_aarch64.LinuxAARCH64JavaThreadPDAccess
dup
invokespecial sun.jvm.hotspot.runtime.linux_aarch64.LinuxAARCH64JavaThreadPDAccess.<init>:()V
putstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
27: goto 49
28: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "sun.jvm.hotspot.runtime.linux_"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
29: aload 3
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".Linux"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.String.toUpperCase:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
30: ldc "JavaThreadPDAccess"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
31: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
iconst_0
anewarray java.lang.Class
32: invokevirtual java.lang.Class.getDeclaredConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.jvm.hotspot.runtime.JavaThreadPDAccess
33: putstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
34: goto 49
StackMap locals:
StackMap stack: java.lang.Exception
35: pop
36: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "OS/CPU combination "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
37: ldc " not yet supported"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
38: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
39: StackMap locals:
StackMap stack:
aload 2
ldc "bsd"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 46
40: aload 3
ldc "x86"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 43
41: new sun.jvm.hotspot.runtime.bsd_x86.BsdX86JavaThreadPDAccess
dup
invokespecial sun.jvm.hotspot.runtime.bsd_x86.BsdX86JavaThreadPDAccess.<init>:()V
putstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
42: goto 49
StackMap locals:
StackMap stack:
43: aload 3
ldc "amd64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 44
aload 3
ldc "x86_64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 49
44: StackMap locals:
StackMap stack:
new sun.jvm.hotspot.runtime.bsd_amd64.BsdAMD64JavaThreadPDAccess
dup
invokespecial sun.jvm.hotspot.runtime.bsd_amd64.BsdAMD64JavaThreadPDAccess.<init>:()V
putstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
45: goto 49
StackMap locals:
StackMap stack:
46: aload 2
ldc "darwin"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 49
47: aload 3
ldc "amd64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 48
aload 3
ldc "x86_64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 49
48: StackMap locals:
StackMap stack:
new sun.jvm.hotspot.runtime.bsd_amd64.BsdAMD64JavaThreadPDAccess
dup
invokespecial sun.jvm.hotspot.runtime.bsd_amd64.BsdAMD64JavaThreadPDAccess.<init>:()V
putstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
49: StackMap locals:
StackMap stack:
getstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
ifnonnull 53
50: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "OS/CPU combination "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
51: ldc " not yet supported"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
52: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
53: StackMap locals:
StackMap stack:
new sun.jvm.hotspot.runtime.VirtualConstructor
dup
aload 0
invokespecial sun.jvm.hotspot.runtime.VirtualConstructor.<init>:(Lsun/jvm/hotspot/types/TypeDataBase;)V
putstatic sun.jvm.hotspot.runtime.Threads.virtualConstructor:Lsun/jvm/hotspot/runtime/VirtualConstructor;
54: getstatic sun.jvm.hotspot.runtime.Threads.virtualConstructor:Lsun/jvm/hotspot/runtime/VirtualConstructor;
ldc "JavaThread"
ldc Lsun/jvm/hotspot/runtime/JavaThread;
invokevirtual sun.jvm.hotspot.runtime.VirtualConstructor.addMapping:(Ljava/lang/String;Ljava/lang/Class;)Z
pop
55: invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
invokevirtual sun.jvm.hotspot.runtime.VM.isCore:()Z
ifne 58
56: getstatic sun.jvm.hotspot.runtime.Threads.virtualConstructor:Lsun/jvm/hotspot/runtime/VirtualConstructor;
ldc "CompilerThread"
ldc Lsun/jvm/hotspot/runtime/CompilerThread;
invokevirtual sun.jvm.hotspot.runtime.VirtualConstructor.addMapping:(Ljava/lang/String;Ljava/lang/Class;)Z
pop
57: getstatic sun.jvm.hotspot.runtime.Threads.virtualConstructor:Lsun/jvm/hotspot/runtime/VirtualConstructor;
ldc "CodeCacheSweeperThread"
ldc Lsun/jvm/hotspot/runtime/CodeCacheSweeperThread;
invokevirtual sun.jvm.hotspot.runtime.VirtualConstructor.addMapping:(Ljava/lang/String;Ljava/lang/Class;)Z
pop
58: StackMap locals:
StackMap stack:
getstatic sun.jvm.hotspot.runtime.Threads.virtualConstructor:Lsun/jvm/hotspot/runtime/VirtualConstructor;
ldc "JvmtiAgentThread"
ldc Lsun/jvm/hotspot/runtime/JvmtiAgentThread;
invokevirtual sun.jvm.hotspot.runtime.VirtualConstructor.addMapping:(Ljava/lang/String;Ljava/lang/Class;)Z
pop
59: getstatic sun.jvm.hotspot.runtime.Threads.virtualConstructor:Lsun/jvm/hotspot/runtime/VirtualConstructor;
ldc "ServiceThread"
ldc Lsun/jvm/hotspot/runtime/ServiceThread;
invokevirtual sun.jvm.hotspot.runtime.VirtualConstructor.addMapping:(Ljava/lang/String;Ljava/lang/Class;)Z
pop
60: getstatic sun.jvm.hotspot.runtime.Threads.virtualConstructor:Lsun/jvm/hotspot/runtime/VirtualConstructor;
ldc "MonitorDeflationThread"
ldc Lsun/jvm/hotspot/runtime/MonitorDeflationThread;
invokevirtual sun.jvm.hotspot.runtime.VirtualConstructor.addMapping:(Ljava/lang/String;Ljava/lang/Class;)Z
pop
61: getstatic sun.jvm.hotspot.runtime.Threads.virtualConstructor:Lsun/jvm/hotspot/runtime/VirtualConstructor;
ldc "NotificationThread"
ldc Lsun/jvm/hotspot/runtime/NotificationThread;
invokevirtual sun.jvm.hotspot.runtime.VirtualConstructor.addMapping:(Ljava/lang/String;Ljava/lang/Class;)Z
pop
62: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 63 0 db Lsun/jvm/hotspot/types/TypeDataBase;
1 63 1 type Lsun/jvm/hotspot/types/Type;
3 63 2 os Ljava/lang/String;
4 63 3 cpu Ljava/lang/String;
Exception table:
from to target type
28 34 35 Class java.lang.Exception
MethodParameters:
Name Flags
db
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: ldc Lsun/jvm/hotspot/runtime/ThreadsList;
getstatic sun.jvm.hotspot.runtime.Threads.threadListField:Lsun/jvm/hotspot/types/AddressField;
invokeinterface sun.jvm.hotspot.types.AddressField.getValue:()Lsun/jvm/hotspot/debugger/Address;
invokestatic sun.jvm.hotspot.runtime.VMObjectFactory.newObject:(Ljava/lang/Class;Lsun/jvm/hotspot/debugger/Address;)Ljava/lang/Object;
checkcast sun.jvm.hotspot.runtime.ThreadsList
putstatic sun.jvm.hotspot.runtime.Threads._list:Lsun/jvm/hotspot/runtime/ThreadsList;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/jvm/hotspot/runtime/Threads;
public sun.jvm.hotspot.runtime.JavaThread getJavaThreadAt(int);
descriptor: (I)Lsun/jvm/hotspot/runtime/JavaThread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 1
i2l
getstatic sun.jvm.hotspot.runtime.Threads._list:Lsun/jvm/hotspot/runtime/ThreadsList;
invokevirtual sun.jvm.hotspot.runtime.ThreadsList.length:()J
lcmp
ifge 2
1: aload 0
getstatic sun.jvm.hotspot.runtime.Threads._list:Lsun/jvm/hotspot/runtime/ThreadsList;
iload 1
invokevirtual sun.jvm.hotspot.runtime.ThreadsList.getJavaThreadAddressAt:(I)Lsun/jvm/hotspot/debugger/Address;
invokevirtual sun.jvm.hotspot.runtime.Threads.createJavaThreadWrapper:(Lsun/jvm/hotspot/debugger/Address;)Lsun/jvm/hotspot/runtime/JavaThread;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/jvm/hotspot/runtime/Threads;
0 3 1 i I
MethodParameters:
Name Flags
i
public int getNumberOfThreads();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.jvm.hotspot.runtime.Threads._list:Lsun/jvm/hotspot/runtime/ThreadsList;
invokevirtual sun.jvm.hotspot.runtime.ThreadsList.length:()J
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/runtime/Threads;
public sun.jvm.hotspot.runtime.JavaThread createJavaThreadWrapper(sun.jvm.hotspot.debugger.Address);
descriptor: (Lsun/jvm/hotspot/debugger/Address;)Lsun/jvm/hotspot/runtime/JavaThread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic sun.jvm.hotspot.runtime.Threads.virtualConstructor:Lsun/jvm/hotspot/runtime/VirtualConstructor;
aload 1
invokevirtual sun.jvm.hotspot.runtime.VirtualConstructor.instantiateWrapperFor:(Lsun/jvm/hotspot/debugger/Address;)Lsun/jvm/hotspot/runtime/VMObject;
checkcast sun.jvm.hotspot.runtime.JavaThread
astore 2
start local 2 1: aload 2
getstatic sun.jvm.hotspot.runtime.Threads.access:Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;
invokevirtual sun.jvm.hotspot.runtime.JavaThread.setThreadPDAccess:(Lsun/jvm/hotspot/runtime/JavaThreadPDAccess;)V
2: aload 2
3: areturn
end local 2 4: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 5: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Unable to deduce type of thread from address "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
6: ldc " (expected type JavaThread, CompilerThread, MonitorDeflationThread, ServiceThread, JvmtiAgentThread or CodeCacheSweeperThread)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
7: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/jvm/hotspot/runtime/Threads;
0 8 1 threadAddr Lsun/jvm/hotspot/debugger/Address;
1 4 2 thread Lsun/jvm/hotspot/runtime/JavaThread;
5 8 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
threadAddr
public void oopsDo(sun.jvm.hotspot.runtime.AddressVisitor);
descriptor: (Lsun/jvm/hotspot/runtime/AddressVisitor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
invokevirtual sun.jvm.hotspot.runtime.VM.getThreads:()Lsun/jvm/hotspot/runtime/Threads;
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 6
3: StackMap locals: sun.jvm.hotspot.runtime.Threads int
StackMap stack:
aload 2
iload 3
invokevirtual sun.jvm.hotspot.runtime.Threads.getJavaThreadAt:(I)Lsun/jvm/hotspot/runtime/JavaThread;
astore 4
start local 4 4: aload 4
aload 1
invokevirtual sun.jvm.hotspot.runtime.JavaThread.oopsDo:(Lsun/jvm/hotspot/runtime/AddressVisitor;)V
end local 4 5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
aload 2
invokevirtual sun.jvm.hotspot.runtime.Threads.getNumberOfThreads:()I
if_icmplt 3
end local 3 7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/jvm/hotspot/runtime/Threads;
0 8 1 oopVisitor Lsun/jvm/hotspot/runtime/AddressVisitor;
1 8 2 threads Lsun/jvm/hotspot/runtime/Threads;
2 7 3 i I
4 5 4 thread Lsun/jvm/hotspot/runtime/JavaThread;
MethodParameters:
Name Flags
oopVisitor
public sun.jvm.hotspot.runtime.JavaThread owningThreadFromMonitor(sun.jvm.hotspot.debugger.Address);
descriptor: (Lsun/jvm/hotspot/debugger/Address;)Lsun/jvm/hotspot/runtime/JavaThread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 2: goto 7
3: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual sun.jvm.hotspot.runtime.Threads.getJavaThreadAt:(I)Lsun/jvm/hotspot/runtime/JavaThread;
astore 3
start local 3 4: aload 1
aload 3
invokevirtual sun.jvm.hotspot.runtime.JavaThread.threadObjectAddress:()Lsun/jvm/hotspot/debugger/Address;
invokeinterface sun.jvm.hotspot.debugger.Address.equals:(Ljava/lang/Object;)Z
ifeq 6
5: aload 3
areturn
end local 3 6: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
aload 0
invokevirtual sun.jvm.hotspot.runtime.Threads.getNumberOfThreads:()I
if_icmplt 3
end local 2 8: iconst_0
istore 2
start local 2 9: goto 14
10: StackMap locals:
StackMap stack:
aload 0
iload 2
invokevirtual sun.jvm.hotspot.runtime.Threads.getJavaThreadAt:(I)Lsun/jvm/hotspot/runtime/JavaThread;
astore 3
start local 3 11: aload 3
aload 1
invokevirtual sun.jvm.hotspot.runtime.JavaThread.isLockOwned:(Lsun/jvm/hotspot/debugger/Address;)Z
ifeq 13
12: aload 3
areturn
end local 3 13: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
14: iload 2
aload 0
invokevirtual sun.jvm.hotspot.runtime.Threads.getNumberOfThreads:()I
if_icmplt 10
end local 2 15: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/jvm/hotspot/runtime/Threads;
0 16 1 o Lsun/jvm/hotspot/debugger/Address;
2 8 2 i I
4 6 3 thread Lsun/jvm/hotspot/runtime/JavaThread;
9 15 2 i I
11 13 3 thread Lsun/jvm/hotspot/runtime/JavaThread;
MethodParameters:
Name Flags
o
public sun.jvm.hotspot.runtime.JavaThread owningThreadFromMonitor(sun.jvm.hotspot.runtime.ObjectMonitor);
descriptor: (Lsun/jvm/hotspot/runtime/ObjectMonitor;)Lsun/jvm/hotspot/runtime/JavaThread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.jvm.hotspot.runtime.ObjectMonitor.owner:()Lsun/jvm/hotspot/debugger/Address;
invokevirtual sun.jvm.hotspot.runtime.Threads.owningThreadFromMonitor:(Lsun/jvm/hotspot/debugger/Address;)Lsun/jvm/hotspot/runtime/JavaThread;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/runtime/Threads;
0 1 1 monitor Lsun/jvm/hotspot/runtime/ObjectMonitor;
MethodParameters:
Name Flags
monitor
public java.util.List<sun.jvm.hotspot.runtime.JavaThread> getPendingThreads(sun.jvm.hotspot.runtime.ObjectMonitor);
descriptor: (Lsun/jvm/hotspot/runtime/ObjectMonitor;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 10
3: StackMap locals: java.util.List int
StackMap stack:
aload 0
iload 3
invokevirtual sun.jvm.hotspot.runtime.Threads.getJavaThreadAt:(I)Lsun/jvm/hotspot/runtime/JavaThread;
astore 4
start local 4 4: aload 4
invokevirtual sun.jvm.hotspot.runtime.JavaThread.isCompilerThread:()Z
ifne 9
aload 4
invokevirtual sun.jvm.hotspot.runtime.JavaThread.isCodeCacheSweeperThread:()Z
ifeq 6
5: goto 9
6: StackMap locals: sun.jvm.hotspot.runtime.JavaThread
StackMap stack:
aload 4
invokevirtual sun.jvm.hotspot.runtime.JavaThread.getCurrentPendingMonitor:()Lsun/jvm/hotspot/runtime/ObjectMonitor;
astore 5
start local 5 7: aload 1
aload 5
invokevirtual sun.jvm.hotspot.runtime.ObjectMonitor.equals:(Ljava/lang/Object;)Z
ifeq 9
8: aload 2
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 end local 4 9: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 0
invokevirtual sun.jvm.hotspot.runtime.Threads.getNumberOfThreads:()I
if_icmplt 3
end local 3 11: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/jvm/hotspot/runtime/Threads;
0 12 1 monitor Lsun/jvm/hotspot/runtime/ObjectMonitor;
1 12 2 pendingThreads Ljava/util/List<Lsun/jvm/hotspot/runtime/JavaThread;>;
2 11 3 i I
4 9 4 thread Lsun/jvm/hotspot/runtime/JavaThread;
7 9 5 pending Lsun/jvm/hotspot/runtime/ObjectMonitor;
Signature: (Lsun/jvm/hotspot/runtime/ObjectMonitor;)Ljava/util/List<Lsun/jvm/hotspot/runtime/JavaThread;>;
MethodParameters:
Name Flags
monitor
public java.util.List<sun.jvm.hotspot.runtime.JavaThread> getWaitingThreads(sun.jvm.hotspot.runtime.ObjectMonitor);
descriptor: (Lsun/jvm/hotspot/runtime/ObjectMonitor;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 8
3: StackMap locals: java.util.List int
StackMap stack:
aload 0
iload 3
invokevirtual sun.jvm.hotspot.runtime.Threads.getJavaThreadAt:(I)Lsun/jvm/hotspot/runtime/JavaThread;
astore 4
start local 4 4: aload 4
invokevirtual sun.jvm.hotspot.runtime.JavaThread.getCurrentWaitingMonitor:()Lsun/jvm/hotspot/runtime/ObjectMonitor;
astore 5
start local 5 5: aload 1
aload 5
invokevirtual sun.jvm.hotspot.runtime.ObjectMonitor.equals:(Ljava/lang/Object;)Z
ifeq 7
6: aload 2
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 end local 4 7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 0
invokevirtual sun.jvm.hotspot.runtime.Threads.getNumberOfThreads:()I
if_icmplt 3
end local 3 9: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/jvm/hotspot/runtime/Threads;
0 10 1 monitor Lsun/jvm/hotspot/runtime/ObjectMonitor;
1 10 2 pendingThreads Ljava/util/List<Lsun/jvm/hotspot/runtime/JavaThread;>;
2 9 3 i I
4 7 4 thread Lsun/jvm/hotspot/runtime/JavaThread;
5 7 5 waiting Lsun/jvm/hotspot/runtime/ObjectMonitor;
Signature: (Lsun/jvm/hotspot/runtime/ObjectMonitor;)Ljava/util/List<Lsun/jvm/hotspot/runtime/JavaThread;>;
MethodParameters:
Name Flags
monitor
}
SourceFile: "Threads.java"
NestMembers:
sun.jvm.hotspot.runtime.Threads$1
InnerClasses:
sun.jvm.hotspot.runtime.Threads$1