public class java.lang.Thread implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.lang.Thread
super_class: java.lang.Object
{
private volatile java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private int priority;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean daemon;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private volatile boolean interrupted;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private boolean stillborn;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private long eetop;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private java.lang.Runnable target;
descriptor: Ljava/lang/Runnable;
flags: (0x0002) ACC_PRIVATE
private java.lang.ThreadGroup group;
descriptor: Ljava/lang/ThreadGroup;
flags: (0x0002) ACC_PRIVATE
private java.lang.ClassLoader contextClassLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0002) ACC_PRIVATE
private java.security.AccessControlContext inheritedAccessControlContext;
descriptor: Ljava/security/AccessControlContext;
flags: (0x0002) ACC_PRIVATE
private static int threadInitNumber;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
java.lang.ThreadLocal$ThreadLocalMap threadLocals;
descriptor: Ljava/lang/ThreadLocal$ThreadLocalMap;
flags: (0x0000)
java.lang.ThreadLocal$ThreadLocalMap inheritableThreadLocals;
descriptor: Ljava/lang/ThreadLocal$ThreadLocalMap;
flags: (0x0000)
private final long stackSize;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long tid;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static long threadSeqNumber;
descriptor: J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private volatile int threadStatus;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
volatile java.lang.Object parkBlocker;
descriptor: Ljava/lang/Object;
flags: (0x0040) ACC_VOLATILE
private volatile sun.nio.ch.Interruptible blocker;
descriptor: Lsun/nio/ch/Interruptible;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.lang.Object blockerLock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public static final int MIN_PRIORITY;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final int NORM_PRIORITY;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 5
public static final int MAX_PRIORITY;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 10
private static final java.lang.StackTraceElement[] EMPTY_STACK_TRACE;
descriptor: [Ljava/lang/StackTraceElement;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private volatile java.lang.Thread$UncaughtExceptionHandler uncaughtExceptionHandler;
descriptor: Ljava/lang/Thread$UncaughtExceptionHandler;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static volatile java.lang.Thread$UncaughtExceptionHandler defaultUncaughtExceptionHandler;
descriptor: Ljava/lang/Thread$UncaughtExceptionHandler;
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
long threadLocalRandomSeed;
descriptor: J
flags: (0x0000)
RuntimeVisibleAnnotations:
jdk.internal.vm.annotation.Contended(value = "tlr")
int threadLocalRandomProbe;
descriptor: I
flags: (0x0000)
RuntimeVisibleAnnotations:
jdk.internal.vm.annotation.Contended(value = "tlr")
int threadLocalRandomSecondarySeed;
descriptor: I
flags: (0x0000)
RuntimeVisibleAnnotations:
jdk.internal.vm.annotation.Contended(value = "tlr")
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic java.lang.Thread.registerNatives:()V
1: iconst_0
anewarray java.lang.StackTraceElement
2: putstatic java.lang.Thread.EMPTY_STACK_TRACE:[Ljava/lang/StackTraceElement;
3: return
LocalVariableTable:
Start End Slot Name Signature
private static native void registerNatives();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static synchronized int nextThreadNum();
descriptor: ()I
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=0, args_size=0
0: getstatic java.lang.Thread.threadInitNumber:I
dup
iconst_1
iadd
putstatic java.lang.Thread.threadInitNumber:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
private static synchronized long nextThreadID();
descriptor: ()J
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=0, args_size=0
0: getstatic java.lang.Thread.threadSeqNumber:J
lconst_1
ladd
dup2
putstatic java.lang.Thread.threadSeqNumber:J
lreturn
LocalVariableTable:
Start End Slot Name Signature
static void blockedOn(sun.nio.ch.Interruptible);
descriptor: (Lsun/nio/ch/Interruptible;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
astore 1
start local 1 1: aload 1
getfield java.lang.Thread.blockerLock:Ljava/lang/Object;
dup
astore 2
monitorenter
2: aload 1
aload 0
putfield java.lang.Thread.blocker:Lsun/nio/ch/Interruptible;
3: aload 2
monitorexit
4: goto 7
StackMap locals: sun.nio.ch.Interruptible java.lang.Thread java.lang.Object
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 b Lsun/nio/ch/Interruptible;
1 8 1 me Ljava/lang/Thread;
Exception table:
from to target type
2 4 5 any
5 6 5 any
MethodParameters:
Name Flags
b
public static native java.lang.Thread currentThread();
descriptor: ()Ljava/lang/Thread;
flags: (0x0109) ACC_PUBLIC, ACC_STATIC, ACC_NATIVE
RuntimeVisibleAnnotations:
jdk.internal.vm.annotation.IntrinsicCandidate()
public static native void yield();
descriptor: ()V
flags: (0x0109) ACC_PUBLIC, ACC_STATIC, ACC_NATIVE
public static native void sleep(long);
descriptor: (J)V
flags: (0x0109) ACC_PUBLIC, ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
millis
public static void sleep(long, int);
descriptor: (JI)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 2 0: lload 0
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "timeout value is negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 2
iflt 3
iload 2
ldc 999999
if_icmple 6
3: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
4: ldc "nanosecond timeout value out of range"
5: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
iload 2
ifle 8
lload 0
ldc 9223372036854775807
lcmp
ifge 8
7: lload 0
lconst_1
ladd
lstore 0
8: StackMap locals:
StackMap stack:
lload 0
invokestatic java.lang.Thread.sleep:(J)V
9: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 millis J
0 10 2 nanos I
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
millis
nanos
public static void onSpinWait();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=0, locals=0, args_size=0
0: return
LocalVariableTable:
Start End Slot Name Signature
RuntimeVisibleAnnotations:
jdk.internal.vm.annotation.IntrinsicCandidate()
private void <init>(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String, long, java.security.AccessControlContext, boolean);
descriptor: (Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;JLjava/security/AccessControlContext;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=10, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 6 start local 7 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield java.lang.Thread.daemon:Z
2: aload 0
iconst_0
putfield java.lang.Thread.stillborn:Z
3: aload 0
aconst_null
putfield java.lang.Thread.threadLocals:Ljava/lang/ThreadLocal$ThreadLocalMap;
4: aload 0
aconst_null
putfield java.lang.Thread.inheritableThreadLocals:Ljava/lang/ThreadLocal$ThreadLocalMap;
5: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield java.lang.Thread.blockerLock:Ljava/lang/Object;
6: aload 3
ifnonnull 8
7: new java.lang.NullPointerException
dup
ldc "name cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: java.lang.Thread java.lang.ThreadGroup java.lang.Runnable java.lang.String long java.security.AccessControlContext int
StackMap stack:
aload 0
aload 3
putfield java.lang.Thread.name:Ljava/lang/String;
9: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
astore 8
start local 8 10: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 9
start local 9 11: aload 1
ifnonnull 16
12: aload 9
ifnull 14
13: aload 9
invokevirtual java.lang.SecurityManager.getThreadGroup:()Ljava/lang/ThreadGroup;
astore 1
14: StackMap locals: java.lang.Thread java.lang.SecurityManager
StackMap stack:
aload 1
ifnonnull 16
15: aload 8
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
astore 1
16: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.ThreadGroup.checkAccess:()V
17: aload 9
ifnull 22
18: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic java.lang.Thread.isCCLOverridden:(Ljava/lang/Class;)Z
ifeq 22
19: aload 9
20: getstatic sun.security.util.SecurityConstants.SUBCLASS_IMPLEMENTATION_PERMISSION:Ljava/lang/RuntimePermission;
21: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
22: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.ThreadGroup.addUnstarted:()V
23: aload 0
aload 1
putfield java.lang.Thread.group:Ljava/lang/ThreadGroup;
24: aload 0
aload 8
invokevirtual java.lang.Thread.isDaemon:()Z
putfield java.lang.Thread.daemon:Z
25: aload 0
aload 8
invokevirtual java.lang.Thread.getPriority:()I
putfield java.lang.Thread.priority:I
26: aload 9
ifnull 27
aload 8
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic java.lang.Thread.isCCLOverridden:(Ljava/lang/Class;)Z
ifeq 28
27: StackMap locals:
StackMap stack:
aload 0
aload 8
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
putfield java.lang.Thread.contextClassLoader:Ljava/lang/ClassLoader;
goto 29
28: StackMap locals:
StackMap stack:
aload 0
aload 8
getfield java.lang.Thread.contextClassLoader:Ljava/lang/ClassLoader;
putfield java.lang.Thread.contextClassLoader:Ljava/lang/ClassLoader;
29: StackMap locals:
StackMap stack:
aload 0
30: aload 6
ifnull 31
aload 6
goto 32
StackMap locals:
StackMap stack: java.lang.Thread
31: invokestatic java.security.AccessController.getContext:()Ljava/security/AccessControlContext;
32: StackMap locals: java.lang.Thread java.lang.ThreadGroup java.lang.Runnable java.lang.String long java.security.AccessControlContext int java.lang.Thread java.lang.SecurityManager
StackMap stack: java.lang.Thread java.security.AccessControlContext
putfield java.lang.Thread.inheritedAccessControlContext:Ljava/security/AccessControlContext;
33: aload 0
aload 2
putfield java.lang.Thread.target:Ljava/lang/Runnable;
34: aload 0
aload 0
getfield java.lang.Thread.priority:I
invokevirtual java.lang.Thread.setPriority:(I)V
35: iload 7
ifeq 39
aload 8
getfield java.lang.Thread.inheritableThreadLocals:Ljava/lang/ThreadLocal$ThreadLocalMap;
ifnull 39
36: aload 0
37: aload 8
getfield java.lang.Thread.inheritableThreadLocals:Ljava/lang/ThreadLocal$ThreadLocalMap;
invokestatic java.lang.ThreadLocal.createInheritedMap:(Ljava/lang/ThreadLocal$ThreadLocalMap;)Ljava/lang/ThreadLocal$ThreadLocalMap;
38: putfield java.lang.Thread.inheritableThreadLocals:Ljava/lang/ThreadLocal$ThreadLocalMap;
39: StackMap locals:
StackMap stack:
aload 0
lload 4
putfield java.lang.Thread.stackSize:J
40: aload 0
invokestatic java.lang.Thread.nextThreadID:()J
putfield java.lang.Thread.tid:J
41: return
end local 9 end local 8 end local 7 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Ljava/lang/Thread;
0 42 1 g Ljava/lang/ThreadGroup;
0 42 2 target Ljava/lang/Runnable;
0 42 3 name Ljava/lang/String;
0 42 4 stackSize J
0 42 6 acc Ljava/security/AccessControlContext;
0 42 7 inheritThreadLocals Z
10 42 8 parent Ljava/lang/Thread;
11 42 9 security Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
g
target
name
stackSize
acc
inheritThreadLocals
protected java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.CloneNotSupportedException
dup
invokespecial java.lang.CloneNotSupportedException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Thread;
Exceptions:
throws java.lang.CloneNotSupportedException
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
aconst_null
new java.lang.StringBuilder
dup
ldc "Thread-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.lang.Thread.nextThreadNum:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
lconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;J)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Thread;
public void <init>(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aload 1
new java.lang.StringBuilder
dup
ldc "Thread-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.lang.Thread.nextThreadNum:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
lconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;J)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Thread;
0 2 1 target Ljava/lang/Runnable;
MethodParameters:
Name Flags
target
void <init>(java.lang.Runnable, java.security.AccessControlContext);
descriptor: (Ljava/lang/Runnable;Ljava/security/AccessControlContext;)V
flags: (0x0000)
Code:
stack=8, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aconst_null
aload 1
new java.lang.StringBuilder
dup
ldc "Thread-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.lang.Thread.nextThreadNum:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
lconst_0
aload 2
iconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;JLjava/security/AccessControlContext;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Thread;
0 2 1 target Ljava/lang/Runnable;
0 2 2 acc Ljava/security/AccessControlContext;
MethodParameters:
Name Flags
target
acc
public void <init>(java.lang.ThreadGroup, java.lang.Runnable);
descriptor: (Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
new java.lang.StringBuilder
dup
ldc "Thread-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.lang.Thread.nextThreadNum:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
lconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;J)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Thread;
0 2 1 group Ljava/lang/ThreadGroup;
0 2 2 target Ljava/lang/Runnable;
MethodParameters:
Name Flags
group
target
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aconst_null
aload 1
lconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;J)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Thread;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public void <init>(java.lang.ThreadGroup, java.lang.String);
descriptor: (Ljava/lang/ThreadGroup;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aconst_null
aload 2
lconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;J)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Thread;
0 2 1 group Ljava/lang/ThreadGroup;
0 2 2 name Ljava/lang/String;
MethodParameters:
Name Flags
group
name
public void <init>(java.lang.Runnable, java.lang.String);
descriptor: (Ljava/lang/Runnable;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aconst_null
aload 1
aload 2
lconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;J)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Thread;
0 2 1 target Ljava/lang/Runnable;
0 2 2 name Ljava/lang/String;
MethodParameters:
Name Flags
target
name
public void <init>(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String);
descriptor: (Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
lconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;J)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Thread;
0 2 1 group Ljava/lang/ThreadGroup;
0 2 2 target Ljava/lang/Runnable;
0 2 3 name Ljava/lang/String;
MethodParameters:
Name Flags
group
target
name
public void <init>(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String, long);
descriptor: (Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
lload 4
aconst_null
iconst_1
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;JLjava/security/AccessControlContext;Z)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Thread;
0 2 1 group Ljava/lang/ThreadGroup;
0 2 2 target Ljava/lang/Runnable;
0 2 3 name Ljava/lang/String;
0 2 4 stackSize J
MethodParameters:
Name Flags
group
target
name
stackSize
public void <init>(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String, long, boolean);
descriptor: (Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;JZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 6 0: aload 0
aload 1
aload 2
aload 3
lload 4
aconst_null
iload 6
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;JLjava/security/AccessControlContext;Z)V
1: return
end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Thread;
0 2 1 group Ljava/lang/ThreadGroup;
0 2 2 target Ljava/lang/Runnable;
0 2 3 name Ljava/lang/String;
0 2 4 stackSize J
0 2 6 inheritThreadLocals Z
MethodParameters:
Name Flags
group
target
name
stackSize
inheritThreadLocals
public synchronized void start();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield java.lang.Thread.threadStatus:I
ifeq 2
1: new java.lang.IllegalThreadStateException
dup
invokespecial java.lang.IllegalThreadStateException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield java.lang.Thread.group:Ljava/lang/ThreadGroup;
aload 0
invokevirtual java.lang.ThreadGroup.add:(Ljava/lang/Thread;)V
3: iconst_0
istore 1
start local 1 4: aload 0
invokevirtual java.lang.Thread.start0:()V
5: iconst_1
istore 1
6: goto 13
StackMap locals: java.lang.Thread int
StackMap stack: java.lang.Throwable
7: astore 2
8: iload 1
ifne 12
9: aload 0
getfield java.lang.Thread.group:Ljava/lang/ThreadGroup;
aload 0
invokevirtual java.lang.ThreadGroup.threadStartFailed:(Ljava/lang/Thread;)V
10: goto 12
StackMap locals: java.lang.Thread int java.lang.Throwable
StackMap stack: java.lang.Throwable
11: pop
12: StackMap locals:
StackMap stack:
aload 2
athrow
13: StackMap locals:
StackMap stack:
iload 1
ifne 17
14: aload 0
getfield java.lang.Thread.group:Ljava/lang/ThreadGroup;
aload 0
invokevirtual java.lang.ThreadGroup.threadStartFailed:(Ljava/lang/Thread;)V
15: goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
16: pop
17: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljava/lang/Thread;
4 18 1 started Z
Exception table:
from to target type
4 7 7 any
8 10 11 Class java.lang.Throwable
13 15 16 Class java.lang.Throwable
private native void start0();
descriptor: ()V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.lang.Thread.target:Ljava/lang/Runnable;
ifnull 2
1: aload 0
getfield java.lang.Thread.target:Ljava/lang/Runnable;
invokeinterface java.lang.Runnable.run:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/lang/Thread;
private void exit();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.lang.Thread.threadLocals:Ljava/lang/ThreadLocal$ThreadLocalMap;
ifnull 2
getstatic jdk.internal.misc.TerminatingThreadLocal.REGISTRY:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.isPresent:()Z
ifeq 2
1: invokestatic jdk.internal.misc.TerminatingThreadLocal.threadTerminated:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield java.lang.Thread.group:Ljava/lang/ThreadGroup;
ifnull 5
3: aload 0
getfield java.lang.Thread.group:Ljava/lang/ThreadGroup;
aload 0
invokevirtual java.lang.ThreadGroup.threadTerminated:(Ljava/lang/Thread;)V
4: aload 0
aconst_null
putfield java.lang.Thread.group:Ljava/lang/ThreadGroup;
5: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield java.lang.Thread.target:Ljava/lang/Runnable;
6: aload 0
aconst_null
putfield java.lang.Thread.threadLocals:Ljava/lang/ThreadLocal$ThreadLocalMap;
7: aload 0
aconst_null
putfield java.lang.Thread.inheritableThreadLocals:Ljava/lang/ThreadLocal$ThreadLocalMap;
8: aload 0
aconst_null
putfield java.lang.Thread.inheritedAccessControlContext:Ljava/security/AccessControlContext;
9: aload 0
aconst_null
putfield java.lang.Thread.blocker:Lsun/nio/ch/Interruptible;
10: aload 0
aconst_null
putfield java.lang.Thread.uncaughtExceptionHandler:Ljava/lang/Thread$UncaughtExceptionHandler;
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/lang/Thread;
public final void stop();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 5
2: aload 0
invokevirtual java.lang.Thread.checkAccess:()V
3: aload 0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
if_acmpeq 5
4: aload 1
getstatic sun.security.util.SecurityConstants.STOP_THREAD_PERMISSION:Ljava/lang/RuntimePermission;
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
5: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
getfield java.lang.Thread.threadStatus:I
ifeq 7
6: aload 0
invokevirtual java.lang.Thread.resume:()V
7: StackMap locals:
StackMap stack:
aload 0
new java.lang.ThreadDeath
dup
invokespecial java.lang.ThreadDeath.<init>:()V
invokevirtual java.lang.Thread.stop0:(Ljava/lang/Object;)V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/lang/Thread;
1 9 1 security Ljava/lang/SecurityManager;
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "1.2")
public void interrupt();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
if_acmpeq 14
1: aload 0
invokevirtual java.lang.Thread.checkAccess:()V
2: aload 0
getfield java.lang.Thread.blockerLock:Ljava/lang/Object;
dup
astore 1
monitorenter
3: aload 0
getfield java.lang.Thread.blocker:Lsun/nio/ch/Interruptible;
astore 2
start local 2 4: aload 2
ifnull 10
5: aload 0
iconst_1
putfield java.lang.Thread.interrupted:Z
6: aload 0
invokevirtual java.lang.Thread.interrupt0:()V
7: aload 2
aload 0
invokeinterface sun.nio.ch.Interruptible.interrupt:(Ljava/lang/Thread;)V
8: aload 1
monitorexit
9: return
end local 2 10: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
11: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 1
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield java.lang.Thread.interrupted:Z
15: aload 0
invokevirtual java.lang.Thread.interrupt0:()V
16: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljava/lang/Thread;
4 10 2 b Lsun/nio/ch/Interruptible;
Exception table:
from to target type
3 9 12 any
10 11 12 any
12 13 12 any
public static boolean interrupted();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
astore 0
start local 0 1: aload 0
getfield java.lang.Thread.interrupted:Z
istore 1
start local 1 2: iload 1
ifeq 5
3: aload 0
iconst_0
putfield java.lang.Thread.interrupted:Z
4: invokestatic java.lang.Thread.clearInterruptEvent:()V
5: StackMap locals: java.lang.Thread int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 t Ljava/lang/Thread;
2 6 1 interrupted Z
public boolean isInterrupted();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.lang.Thread.interrupted:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Thread;
public final native boolean isAlive();
descriptor: ()Z
flags: (0x0111) ACC_PUBLIC, ACC_FINAL, ACC_NATIVE
public final void suspend();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Thread.checkAccess:()V
1: aload 0
invokevirtual java.lang.Thread.suspend0:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/lang/Thread;
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "1.2", forRemoval = true)
public final void resume();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Thread.checkAccess:()V
1: aload 0
invokevirtual java.lang.Thread.resume0:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/lang/Thread;
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "1.2", forRemoval = true)
public final void setPriority(int);
descriptor: (I)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.Thread.checkAccess:()V
1: iload 1
bipush 10
if_icmpgt 2
iload 1
iconst_1
if_icmpge 3
2: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
dup
astore 2
start local 2 4: ifnull 8
5: iload 1
aload 2
invokevirtual java.lang.ThreadGroup.getMaxPriority:()I
if_icmple 7
6: aload 2
invokevirtual java.lang.ThreadGroup.getMaxPriority:()I
istore 1
7: StackMap locals: java.lang.ThreadGroup
StackMap stack:
aload 0
aload 0
iload 1
dup_x1
putfield java.lang.Thread.priority:I
invokevirtual java.lang.Thread.setPriority0:(I)V
8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/lang/Thread;
0 9 1 newPriority I
4 9 2 g Ljava/lang/ThreadGroup;
MethodParameters:
Name Flags
newPriority
public final int getPriority();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.lang.Thread.priority:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Thread;
public final synchronized void setName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.Thread.checkAccess:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "name cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield java.lang.Thread.name:Ljava/lang/String;
4: aload 0
getfield java.lang.Thread.threadStatus:I
ifeq 6
5: aload 0
aload 1
invokevirtual java.lang.Thread.setNativeName:(Ljava/lang/String;)V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/lang/Thread;
0 7 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public final java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.lang.Thread.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Thread;
public final java.lang.ThreadGroup getThreadGroup();
descriptor: ()Ljava/lang/ThreadGroup;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.lang.Thread.group:Ljava/lang/ThreadGroup;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Thread;
public static int activeCount();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
invokevirtual java.lang.ThreadGroup.activeCount:()I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static int enumerate(java.lang.Thread[]);
descriptor: ([Ljava/lang/Thread;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
aload 0
invokevirtual java.lang.ThreadGroup.enumerate:([Ljava/lang/Thread;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 tarray [Ljava/lang/Thread;
MethodParameters:
Name Flags
tarray
public int countStackFrames();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Thread;
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "1.2", forRemoval = true)
public final synchronized void join(long);
descriptor: (J)V
flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SYNCHRONIZED
Code:
stack=7, locals=7, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifle 9
1: aload 0
invokevirtual java.lang.Thread.isAlive:()Z
ifeq 15
2: invokestatic java.lang.System.nanoTime:()J
lstore 3
start local 3 3: lload 1
lstore 5
start local 5 4: StackMap locals: long long
StackMap stack:
aload 0
lload 5
invokevirtual java.lang.Object.wait:(J)V
5: aload 0
invokevirtual java.lang.Thread.isAlive:()Z
ifeq 15
lload 1
6: getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokestatic java.lang.System.nanoTime:()J
lload 3
lsub
invokevirtual java.util.concurrent.TimeUnit.toMillis:(J)J
lsub
dup2
lstore 5
lconst_0
7: lcmp
ifgt 4
end local 5 end local 3 8: goto 15
StackMap locals:
StackMap stack:
9: lload 1
lconst_0
lcmp
ifne 14
10: goto 12
11: StackMap locals:
StackMap stack:
aload 0
lconst_0
invokevirtual java.lang.Object.wait:(J)V
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Thread.isAlive:()Z
ifne 11
13: goto 15
14: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "timeout value is negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljava/lang/Thread;
0 16 1 millis J
3 8 3 startTime J
4 8 5 delay J
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
millis final
public final synchronized void join(long, int);
descriptor: (JI)V
flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SYNCHRONIZED
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 3 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "timeout value is negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 3
iflt 3
iload 3
ldc 999999
if_icmple 6
3: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
4: ldc "nanosecond timeout value out of range"
5: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
iload 3
ifle 8
lload 1
ldc 9223372036854775807
lcmp
ifge 8
7: lload 1
lconst_1
ladd
lstore 1
8: StackMap locals:
StackMap stack:
aload 0
lload 1
invokevirtual java.lang.Thread.join:(J)V
9: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/lang/Thread;
0 10 1 millis J
0 10 3 nanos I
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
millis
nanos
public final void join();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
invokevirtual java.lang.Thread.join:(J)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Thread;
Exceptions:
throws java.lang.InterruptedException
public static void dumpStack();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.Exception
dup
ldc "Stack trace"
invokespecial java.lang.Exception.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.Exception.printStackTrace:()V
1: return
LocalVariableTable:
Start End Slot Name Signature
public final void setDaemon(boolean);
descriptor: (Z)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.Thread.checkAccess:()V
1: aload 0
invokevirtual java.lang.Thread.isAlive:()Z
ifeq 3
2: new java.lang.IllegalThreadStateException
dup
invokespecial java.lang.IllegalThreadStateException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield java.lang.Thread.daemon:Z
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/lang/Thread;
0 5 1 on Z
MethodParameters:
Name Flags
on
public final boolean isDaemon();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.lang.Thread.daemon:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Thread;
public final void checkAccess();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
invokevirtual java.lang.SecurityManager.checkAccess:(Ljava/lang/Thread;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/Thread;
1 4 1 security Ljava/lang/SecurityManager;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
astore 1
start local 1 1: aload 1
ifnull 5
2: new java.lang.StringBuilder
dup
ldc "Thread["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.Thread.getPriority:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: aload 1
invokevirtual java.lang.ThreadGroup.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
5: StackMap locals: java.lang.ThreadGroup
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Thread["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.Thread.getPriority:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/lang/Thread;
1 8 1 group Ljava/lang/ThreadGroup;
public java.lang.ClassLoader getContextClassLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield java.lang.Thread.contextClassLoader:Ljava/lang/ClassLoader;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 3: aload 1
ifnull 7
4: aload 0
getfield java.lang.Thread.contextClassLoader:Ljava/lang/ClassLoader;
5: invokestatic jdk.internal.reflect.Reflection.getCallerClass:()Ljava/lang/Class;
6: invokestatic java.lang.ClassLoader.checkClassLoaderPermission:(Ljava/lang/ClassLoader;Ljava/lang/Class;)V
7: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
getfield java.lang.Thread.contextClassLoader:Ljava/lang/ClassLoader;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/lang/Thread;
3 8 1 sm Ljava/lang/SecurityManager;
RuntimeVisibleAnnotations:
jdk.internal.reflect.CallerSensitive()
public void setContextClassLoader(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
new java.lang.RuntimePermission
dup
ldc "setContextClassLoader"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
aload 1
putfield java.lang.Thread.contextClassLoader:Ljava/lang/ClassLoader;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/lang/Thread;
0 5 1 cl Ljava/lang/ClassLoader;
1 5 2 sm Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
cl
public static native boolean holdsLock(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0109) ACC_PUBLIC, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
obj
public java.lang.StackTraceElement[] getStackTrace();
descriptor: ()[Ljava/lang/StackTraceElement;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
if_acmpeq 13
1: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 2: aload 1
ifnull 6
3: aload 1
4: getstatic sun.security.util.SecurityConstants.GET_STACK_TRACE_PERMISSION:Ljava/lang/RuntimePermission;
5: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
6: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.lang.Thread.isAlive:()Z
ifne 8
7: getstatic java.lang.Thread.EMPTY_STACK_TRACE:[Ljava/lang/StackTraceElement;
areturn
8: StackMap locals:
StackMap stack:
iconst_1
anewarray java.lang.Thread
dup
iconst_0
aload 0
aastore
invokestatic java.lang.Thread.dumpThreads:([Ljava/lang/Thread;)[[Ljava/lang/StackTraceElement;
astore 2
start local 2 9: aload 2
iconst_0
aaload
astore 3
start local 3 10: aload 3
ifnonnull 12
11: getstatic java.lang.Thread.EMPTY_STACK_TRACE:[Ljava/lang/StackTraceElement;
astore 3
12: StackMap locals: java.lang.StackTraceElement[][] java.lang.StackTraceElement[]
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 13: StackMap locals:
StackMap stack:
new java.lang.Exception
dup
invokespecial java.lang.Exception.<init>:()V
invokevirtual java.lang.Exception.getStackTrace:()[Ljava/lang/StackTraceElement;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljava/lang/Thread;
2 13 1 security Ljava/lang/SecurityManager;
9 13 2 stackTraceArray [[Ljava/lang/StackTraceElement;
10 13 3 stackTrace [Ljava/lang/StackTraceElement;
public static java.util.Map<java.lang.Thread, java.lang.StackTraceElement[]> getAllStackTraces();
descriptor: ()Ljava/util/Map;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 0
start local 0 1: aload 0
ifnull 8
2: aload 0
3: getstatic sun.security.util.SecurityConstants.GET_STACK_TRACE_PERMISSION:Ljava/lang/RuntimePermission;
4: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
5: aload 0
6: getstatic sun.security.util.SecurityConstants.MODIFY_THREADGROUP_PERMISSION:Ljava/lang/RuntimePermission;
7: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
8: StackMap locals: java.lang.SecurityManager
StackMap stack:
invokestatic java.lang.Thread.getThreads:()[Ljava/lang/Thread;
astore 1
start local 1 9: aload 1
invokestatic java.lang.Thread.dumpThreads:([Ljava/lang/Thread;)[[Ljava/lang/StackTraceElement;
astore 2
start local 2 10: new java.util.HashMap
dup
aload 1
arraylength
invokespecial java.util.HashMap.<init>:(I)V
astore 3
start local 3 11: iconst_0
istore 4
start local 4 12: goto 17
13: StackMap locals: java.lang.SecurityManager java.lang.Thread[] java.lang.StackTraceElement[][] java.util.Map int
StackMap stack:
aload 2
iload 4
aaload
astore 5
start local 5 14: aload 5
ifnull 16
15: aload 3
aload 1
iload 4
aaload
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 16: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
17: iload 4
aload 1
arraylength
if_icmplt 13
end local 4 18: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 19 0 security Ljava/lang/SecurityManager;
9 19 1 threads [Ljava/lang/Thread;
10 19 2 traces [[Ljava/lang/StackTraceElement;
11 19 3 m Ljava/util/Map<Ljava/lang/Thread;[Ljava/lang/StackTraceElement;>;
12 18 4 i I
14 16 5 stackTrace [Ljava/lang/StackTraceElement;
Signature: ()Ljava/util/Map<Ljava/lang/Thread;[Ljava/lang/StackTraceElement;>;
private static boolean isCCLOverridden(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
ldc Ljava/lang/Thread;
if_acmpne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
getstatic java.lang.Thread$Caches.subclassAuditsQueue:Ljava/lang/ref/ReferenceQueue;
getstatic java.lang.Thread$Caches.subclassAudits:Ljava/util/concurrent/ConcurrentMap;
invokestatic java.lang.Thread.processQueue:(Ljava/lang/ref/ReferenceQueue;Ljava/util/concurrent/ConcurrentMap;)V
3: new java.lang.Thread$WeakClassKey
dup
aload 0
getstatic java.lang.Thread$Caches.subclassAuditsQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial java.lang.Thread$WeakClassKey.<init>:(Ljava/lang/Class;Ljava/lang/ref/ReferenceQueue;)V
astore 1
start local 1 4: getstatic java.lang.Thread$Caches.subclassAudits:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
astore 2
start local 2 5: aload 2
ifnonnull 8
6: aload 0
invokestatic java.lang.Thread.auditSubclass:(Ljava/lang/Class;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
astore 2
7: getstatic java.lang.Thread$Caches.subclassAudits:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: StackMap locals: java.lang.Thread$WeakClassKey java.lang.Boolean
StackMap stack:
aload 2
invokevirtual java.lang.Boolean.booleanValue:()Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 cl Ljava/lang/Class<*>;
4 9 1 key Ljava/lang/Thread$WeakClassKey;
5 9 2 result Ljava/lang/Boolean;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
cl
private static boolean auditSubclass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.lang.Thread$1
dup
aload 0
invokespecial java.lang.Thread$1.<init>:(Ljava/lang/Class;)V
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
astore 1
start local 1 2: aload 1
invokevirtual java.lang.Boolean.booleanValue:()Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 subcl Ljava/lang/Class<*>;
2 3 1 result Ljava/lang/Boolean;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
subcl final
private static native java.lang.StackTraceElement[][] dumpThreads(java.lang.Thread[]);
descriptor: ([Ljava/lang/Thread;)[[Ljava/lang/StackTraceElement;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
threads
private static native java.lang.Thread[] getThreads();
descriptor: ()[Ljava/lang/Thread;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
public long getId();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.lang.Thread.tid:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Thread;
public java.lang.Thread$State getState();
descriptor: ()Ljava/lang/Thread$State;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.lang.Thread.threadStatus:I
invokestatic jdk.internal.misc.VM.toThreadState:(I)Ljava/lang/Thread$State;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Thread;
public static void setDefaultUncaughtExceptionHandler(java.lang.Thread$UncaughtExceptionHandler);
descriptor: (Ljava/lang/Thread$UncaughtExceptionHandler;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 5
2: aload 1
3: new java.lang.RuntimePermission
dup
ldc "setDefaultUncaughtExceptionHandler"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
4: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
5: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
putstatic java.lang.Thread.defaultUncaughtExceptionHandler:Ljava/lang/Thread$UncaughtExceptionHandler;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 eh Ljava/lang/Thread$UncaughtExceptionHandler;
1 7 1 sm Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
eh
public static java.lang.Thread$UncaughtExceptionHandler getDefaultUncaughtExceptionHandler();
descriptor: ()Ljava/lang/Thread$UncaughtExceptionHandler;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic java.lang.Thread.defaultUncaughtExceptionHandler:Ljava/lang/Thread$UncaughtExceptionHandler;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.Thread$UncaughtExceptionHandler getUncaughtExceptionHandler();
descriptor: ()Ljava/lang/Thread$UncaughtExceptionHandler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.lang.Thread.uncaughtExceptionHandler:Ljava/lang/Thread$UncaughtExceptionHandler;
ifnull 2
1: aload 0
getfield java.lang.Thread.uncaughtExceptionHandler:Ljava/lang/Thread$UncaughtExceptionHandler;
goto 3
StackMap locals:
StackMap stack:
2: aload 0
getfield java.lang.Thread.group:Ljava/lang/ThreadGroup;
3: StackMap locals:
StackMap stack: java.lang.Thread$UncaughtExceptionHandler
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/Thread;
public void setUncaughtExceptionHandler(java.lang.Thread$UncaughtExceptionHandler);
descriptor: (Ljava/lang/Thread$UncaughtExceptionHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.Thread.checkAccess:()V
1: aload 0
aload 1
putfield java.lang.Thread.uncaughtExceptionHandler:Ljava/lang/Thread$UncaughtExceptionHandler;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/lang/Thread;
0 3 1 eh Ljava/lang/Thread$UncaughtExceptionHandler;
MethodParameters:
Name Flags
eh
private void dispatchUncaughtException(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.Thread.getUncaughtExceptionHandler:()Ljava/lang/Thread$UncaughtExceptionHandler;
aload 0
aload 1
invokeinterface java.lang.Thread$UncaughtExceptionHandler.uncaughtException:(Ljava/lang/Thread;Ljava/lang/Throwable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Thread;
0 2 1 e Ljava/lang/Throwable;
MethodParameters:
Name Flags
e
static void processQueue(java.lang.ref.ReferenceQueue<java.lang.Class<?>>, java.util.concurrent.ConcurrentMap<? extends java.lang.ref.WeakReference<java.lang.Class<?>>, ?>);
descriptor: (Ljava/lang/ref/ReferenceQueue;Ljava/util/concurrent/ConcurrentMap;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: goto 2
start local 2 1: StackMap locals: java.lang.ref.Reference
StackMap stack:
aload 1
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
dup
astore 2
start local 2 3: ifnonnull 1
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 queue Ljava/lang/ref/ReferenceQueue<Ljava/lang/Class<*>;>;
0 5 1 map Ljava/util/concurrent/ConcurrentMap<+Ljava/lang/ref/WeakReference<Ljava/lang/Class<*>;>;*>;
1 2 2 ref Ljava/lang/ref/Reference<+Ljava/lang/Class<*>;>;
3 5 2 ref Ljava/lang/ref/Reference<+Ljava/lang/Class<*>;>;
Signature: (Ljava/lang/ref/ReferenceQueue<Ljava/lang/Class<*>;>;Ljava/util/concurrent/ConcurrentMap<+Ljava/lang/ref/WeakReference<Ljava/lang/Class<*>;>;*>;)V
MethodParameters:
Name Flags
queue
map
private native void setPriority0(int);
descriptor: (I)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
newPriority
private native void stop0(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
o
private native void suspend0();
descriptor: ()V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
private native void resume0();
descriptor: ()V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
private native void interrupt0();
descriptor: ()V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
private static native void clearInterruptEvent();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private native void setNativeName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
name
}
SourceFile: "Thread.java"
NestMembers:
java.lang.Thread$1 java.lang.Thread$Caches java.lang.Thread$State java.lang.Thread$UncaughtExceptionHandler java.lang.Thread$WeakClassKey
InnerClasses:
java.lang.Thread$1
private Caches = java.lang.Thread$Caches of java.lang.Thread
public final State = java.lang.Thread$State of java.lang.Thread
public abstract UncaughtExceptionHandler = java.lang.Thread$UncaughtExceptionHandler of java.lang.Thread
WeakClassKey = java.lang.Thread$WeakClassKey of java.lang.Thread
ThreadLocalMap = java.lang.ThreadLocal$ThreadLocalMap of java.lang.ThreadLocal