public class sun.jvm.hotspot.runtime.OSThread extends sun.jvm.hotspot.runtime.VMObject
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.runtime.OSThread
super_class: sun.jvm.hotspot.runtime.VMObject
{
private static sun.jvm.hotspot.types.JIntField interruptedField;
descriptor: Lsun/jvm/hotspot/types/JIntField;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.jvm.hotspot.types.Field threadIdField;
descriptor: Lsun/jvm/hotspot/types/Field;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.jvm.hotspot.types.CIntegerField threadStateField;
descriptor: Lsun/jvm/hotspot/types/CIntegerField;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int ALLOCATED;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int INITIALIZED;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int RUNNABLE;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int MONITOR_WAIT;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int CONDVAR_WAIT;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int OBJECT_WAIT;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int BREAKPOINTED;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int SLEEPING;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int ZOMBIE;
descriptor: I
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.OSThread$1
dup
invokespecial sun.jvm.hotspot.runtime.OSThread$1.<init>:()V
invokestatic sun.jvm.hotspot.runtime.VM.registerVMInitializedObserver:(Ljava/util/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=2, locals=2, args_size=1
start local 0 0: aload 0
ldc "OSThread"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupType:(Ljava/lang/String;)Lsun/jvm/hotspot/types/Type;
astore 1
start local 1 1: aload 1
ldc "_interrupted"
invokeinterface sun.jvm.hotspot.types.Type.getJIntField:(Ljava/lang/String;)Lsun/jvm/hotspot/types/JIntField;
putstatic sun.jvm.hotspot.runtime.OSThread.interruptedField:Lsun/jvm/hotspot/types/JIntField;
2: aload 1
ldc "_thread_id"
invokeinterface sun.jvm.hotspot.types.Type.getField:(Ljava/lang/String;)Lsun/jvm/hotspot/types/Field;
putstatic sun.jvm.hotspot.runtime.OSThread.threadIdField:Lsun/jvm/hotspot/types/Field;
3: aload 1
ldc "_state"
invokeinterface sun.jvm.hotspot.types.Type.getCIntegerField:(Ljava/lang/String;)Lsun/jvm/hotspot/types/CIntegerField;
putstatic sun.jvm.hotspot.runtime.OSThread.threadStateField:Lsun/jvm/hotspot/types/CIntegerField;
4: aload 0
ldc "ALLOCATED"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupIntConstant:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.jvm.hotspot.runtime.OSThread.ALLOCATED:I
5: aload 0
ldc "INITIALIZED"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupIntConstant:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.jvm.hotspot.runtime.OSThread.INITIALIZED:I
6: aload 0
ldc "RUNNABLE"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupIntConstant:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.jvm.hotspot.runtime.OSThread.RUNNABLE:I
7: aload 0
ldc "MONITOR_WAIT"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupIntConstant:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.jvm.hotspot.runtime.OSThread.MONITOR_WAIT:I
8: aload 0
ldc "CONDVAR_WAIT"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupIntConstant:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.jvm.hotspot.runtime.OSThread.CONDVAR_WAIT:I
9: aload 0
ldc "OBJECT_WAIT"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupIntConstant:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.jvm.hotspot.runtime.OSThread.OBJECT_WAIT:I
10: aload 0
ldc "BREAKPOINTED"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupIntConstant:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.jvm.hotspot.runtime.OSThread.BREAKPOINTED:I
11: aload 0
ldc "SLEEPING"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupIntConstant:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.jvm.hotspot.runtime.OSThread.SLEEPING:I
12: aload 0
ldc "ZOMBIE"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupIntConstant:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.jvm.hotspot.runtime.OSThread.ZOMBIE:I
13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 db Lsun/jvm/hotspot/types/TypeDataBase;
1 14 1 type Lsun/jvm/hotspot/types/Type;
MethodParameters:
Name Flags
db
public void <init>(sun.jvm.hotspot.debugger.Address);
descriptor: (Lsun/jvm/hotspot/debugger/Address;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.jvm.hotspot.runtime.VMObject.<init>:(Lsun/jvm/hotspot/debugger/Address;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/runtime/OSThread;
0 2 1 addr Lsun/jvm/hotspot/debugger/Address;
MethodParameters:
Name Flags
addr
public boolean interrupted();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.jvm.hotspot.runtime.OSThread.interruptedField:Lsun/jvm/hotspot/types/JIntField;
aload 0
getfield sun.jvm.hotspot.runtime.OSThread.addr:Lsun/jvm/hotspot/debugger/Address;
invokeinterface sun.jvm.hotspot.types.JIntField.getValue:(Lsun/jvm/hotspot/debugger/Address;)I
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/runtime/OSThread;
public int threadId();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.jvm.hotspot.runtime.OSThread.threadIdField:Lsun/jvm/hotspot/types/Field;
aload 0
getfield sun.jvm.hotspot.runtime.OSThread.addr:Lsun/jvm/hotspot/debugger/Address;
invokeinterface sun.jvm.hotspot.types.Field.getJInt:(Lsun/jvm/hotspot/debugger/Address;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/runtime/OSThread;
public sun.jvm.hotspot.runtime.ThreadState getThreadState();
descriptor: ()Lsun/jvm/hotspot/runtime/ThreadState;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: getstatic sun.jvm.hotspot.runtime.OSThread.threadStateField:Lsun/jvm/hotspot/types/CIntegerField;
aload 0
getfield sun.jvm.hotspot.runtime.OSThread.addr:Lsun/jvm/hotspot/debugger/Address;
invokeinterface sun.jvm.hotspot.types.CIntegerField.getValue:(Lsun/jvm/hotspot/debugger/Address;)J
l2i
istore 1
start local 1 1: iload 1
getstatic sun.jvm.hotspot.runtime.OSThread.ALLOCATED:I
if_icmpne 3
2: getstatic sun.jvm.hotspot.runtime.ThreadState.ALLOCATED:Lsun/jvm/hotspot/runtime/ThreadState;
areturn
3: StackMap locals: int
StackMap stack:
iload 1
getstatic sun.jvm.hotspot.runtime.OSThread.INITIALIZED:I
if_icmpne 5
4: getstatic sun.jvm.hotspot.runtime.ThreadState.INITIALIZED:Lsun/jvm/hotspot/runtime/ThreadState;
areturn
5: StackMap locals:
StackMap stack:
iload 1
getstatic sun.jvm.hotspot.runtime.OSThread.RUNNABLE:I
if_icmpne 7
6: getstatic sun.jvm.hotspot.runtime.ThreadState.RUNNABLE:Lsun/jvm/hotspot/runtime/ThreadState;
areturn
7: StackMap locals:
StackMap stack:
iload 1
getstatic sun.jvm.hotspot.runtime.OSThread.MONITOR_WAIT:I
if_icmpne 9
8: getstatic sun.jvm.hotspot.runtime.ThreadState.MONITOR_WAIT:Lsun/jvm/hotspot/runtime/ThreadState;
areturn
9: StackMap locals:
StackMap stack:
iload 1
getstatic sun.jvm.hotspot.runtime.OSThread.CONDVAR_WAIT:I
if_icmpne 11
10: getstatic sun.jvm.hotspot.runtime.ThreadState.CONDVAR_WAIT:Lsun/jvm/hotspot/runtime/ThreadState;
areturn
11: StackMap locals:
StackMap stack:
iload 1
getstatic sun.jvm.hotspot.runtime.OSThread.OBJECT_WAIT:I
if_icmpne 13
12: getstatic sun.jvm.hotspot.runtime.ThreadState.OBJECT_WAIT:Lsun/jvm/hotspot/runtime/ThreadState;
areturn
13: StackMap locals:
StackMap stack:
iload 1
getstatic sun.jvm.hotspot.runtime.OSThread.BREAKPOINTED:I
if_icmpne 15
14: getstatic sun.jvm.hotspot.runtime.ThreadState.BREAKPOINTED:Lsun/jvm/hotspot/runtime/ThreadState;
areturn
15: StackMap locals:
StackMap stack:
iload 1
getstatic sun.jvm.hotspot.runtime.OSThread.SLEEPING:I
if_icmpne 17
16: getstatic sun.jvm.hotspot.runtime.ThreadState.SLEEPING:Lsun/jvm/hotspot/runtime/ThreadState;
areturn
17: StackMap locals:
StackMap stack:
iload 1
getstatic sun.jvm.hotspot.runtime.OSThread.ZOMBIE:I
if_icmpne 19
18: getstatic sun.jvm.hotspot.runtime.ThreadState.ZOMBIE:Lsun/jvm/hotspot/runtime/ThreadState;
areturn
19: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Illegal thread state "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/jvm/hotspot/runtime/OSThread;
1 20 1 val I
}
SourceFile: "OSThread.java"
NestMembers:
sun.jvm.hotspot.runtime.OSThread$1
InnerClasses:
sun.jvm.hotspot.runtime.OSThread$1