public final class sun.misc.InnocuousThread extends java.lang.Thread
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.misc.InnocuousThread
super_class: java.lang.Thread
{
private static final sun.misc.Unsafe UNSAFE;
descriptor: Lsun/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.ThreadGroup THREADGROUP;
descriptor: Ljava/lang/ThreadGroup;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.security.AccessControlContext ACC;
descriptor: Ljava/security/AccessControlContext;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long THREADLOCALS;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long INHERITABLETHREADLOCALS;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long INHERITEDACCESSCONTROLCONTEXT;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private volatile boolean hasRun;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=9, locals=8, args_size=0
0: new java.security.AccessControlContext
dup
iconst_1
anewarray java.security.ProtectionDomain
dup
iconst_0
1: new java.security.ProtectionDomain
dup
aconst_null
aconst_null
invokespecial java.security.ProtectionDomain.<init>:(Ljava/security/CodeSource;Ljava/security/PermissionCollection;)V
aastore
2: invokespecial java.security.AccessControlContext.<init>:([Ljava/security/ProtectionDomain;)V
putstatic sun.misc.InnocuousThread.ACC:Ljava/security/AccessControlContext;
3: invokestatic sun.misc.Unsafe.getUnsafe:()Lsun/misc/Unsafe;
putstatic sun.misc.InnocuousThread.UNSAFE:Lsun/misc/Unsafe;
4: ldc Ljava/lang/Thread;
astore 0
start local 0 5: ldc Ljava/lang/ThreadGroup;
astore 1
start local 1 6: getstatic sun.misc.InnocuousThread.UNSAFE:Lsun/misc/Unsafe;
7: aload 0
ldc "threadLocals"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
8: invokevirtual sun.misc.Unsafe.objectFieldOffset:(Ljava/lang/reflect/Field;)J
putstatic sun.misc.InnocuousThread.THREADLOCALS:J
9: getstatic sun.misc.InnocuousThread.UNSAFE:Lsun/misc/Unsafe;
10: aload 0
ldc "inheritableThreadLocals"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
11: invokevirtual sun.misc.Unsafe.objectFieldOffset:(Ljava/lang/reflect/Field;)J
putstatic sun.misc.InnocuousThread.INHERITABLETHREADLOCALS:J
12: getstatic sun.misc.InnocuousThread.UNSAFE:Lsun/misc/Unsafe;
13: aload 0
ldc "inheritedAccessControlContext"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
14: invokevirtual sun.misc.Unsafe.objectFieldOffset:(Ljava/lang/reflect/Field;)J
putstatic sun.misc.InnocuousThread.INHERITEDACCESSCONTROLCONTEXT:J
15: getstatic sun.misc.InnocuousThread.UNSAFE:Lsun/misc/Unsafe;
aload 0
ldc "group"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
invokevirtual sun.misc.Unsafe.objectFieldOffset:(Ljava/lang/reflect/Field;)J
lstore 2
start local 2 16: getstatic sun.misc.InnocuousThread.UNSAFE:Lsun/misc/Unsafe;
aload 1
ldc "parent"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
invokevirtual sun.misc.Unsafe.objectFieldOffset:(Ljava/lang/reflect/Field;)J
lstore 4
start local 4 17: getstatic sun.misc.InnocuousThread.UNSAFE:Lsun/misc/Unsafe;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
lload 2
invokevirtual sun.misc.Unsafe.getObject:(Ljava/lang/Object;J)Ljava/lang/Object;
18: checkcast java.lang.ThreadGroup
astore 6
start local 6 19: goto 24
20: StackMap locals: java.lang.Class java.lang.Class long long java.lang.ThreadGroup
StackMap stack:
getstatic sun.misc.InnocuousThread.UNSAFE:Lsun/misc/Unsafe;
aload 6
lload 4
invokevirtual sun.misc.Unsafe.getObject:(Ljava/lang/Object;J)Ljava/lang/Object;
checkcast java.lang.ThreadGroup
astore 7
start local 7 21: aload 7
ifnonnull 23
22: goto 25
23: StackMap locals: java.lang.ThreadGroup
StackMap stack:
aload 7
astore 6
end local 7 24: StackMap locals:
StackMap stack:
aload 6
ifnonnull 20
25: StackMap locals:
StackMap stack:
new java.lang.ThreadGroup
dup
aload 6
ldc "InnocuousThreadGroup"
invokespecial java.lang.ThreadGroup.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/String;)V
putstatic sun.misc.InnocuousThread.THREADGROUP:Ljava/lang/ThreadGroup;
end local 6 end local 4 end local 2 end local 1 end local 0 26: goto 29
StackMap locals:
StackMap stack: java.lang.Exception
27: astore 0
start local 0 28: new java.lang.Error
dup
aload 0
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 29: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
5 26 0 tk Ljava/lang/Class<*>;
6 26 1 gk Ljava/lang/Class<*>;
16 26 2 tg J
17 26 4 gp J
19 26 6 group Ljava/lang/ThreadGroup;
21 24 7 parent Ljava/lang/ThreadGroup;
28 29 0 e Ljava/lang/Exception;
Exception table:
from to target type
0 26 27 Class java.lang.Exception
public void <init>(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic sun.misc.InnocuousThread.THREADGROUP:Ljava/lang/ThreadGroup;
aload 1
ldc "anInnocuousThread"
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V
1: getstatic sun.misc.InnocuousThread.UNSAFE:Lsun/misc/Unsafe;
aload 0
getstatic sun.misc.InnocuousThread.INHERITEDACCESSCONTROLCONTEXT:J
getstatic sun.misc.InnocuousThread.ACC:Ljava/security/AccessControlContext;
invokevirtual sun.misc.Unsafe.putOrderedObject:(Ljava/lang/Object;JLjava/lang/Object;)V
2: aload 0
invokevirtual sun.misc.InnocuousThread.eraseThreadLocals:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/misc/InnocuousThread;
0 4 1 target Ljava/lang/Runnable;
MethodParameters:
Name Flags
target
public java.lang.ClassLoader getContextClassLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/InnocuousThread;
public void setUncaughtExceptionHandler(java.lang.Thread$UncaughtExceptionHandler);
descriptor: (Ljava/lang/Thread$UncaughtExceptionHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/InnocuousThread;
0 1 1 x Ljava/lang/Thread$UncaughtExceptionHandler;
MethodParameters:
Name Flags
x
public void setContextClassLoader(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.SecurityException
dup
ldc "setContextClassLoader"
invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/InnocuousThread;
0 1 1 cl Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
cl
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
if_acmpne 3
aload 0
getfield sun.misc.InnocuousThread.hasRun:Z
ifne 3
1: aload 0
iconst_1
putfield sun.misc.InnocuousThread.hasRun:Z
2: aload 0
invokespecial java.lang.Thread.run:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/misc/InnocuousThread;
public void eraseThreadLocals();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: getstatic sun.misc.InnocuousThread.UNSAFE:Lsun/misc/Unsafe;
aload 0
getstatic sun.misc.InnocuousThread.THREADLOCALS:J
aconst_null
invokevirtual sun.misc.Unsafe.putObject:(Ljava/lang/Object;JLjava/lang/Object;)V
1: getstatic sun.misc.InnocuousThread.UNSAFE:Lsun/misc/Unsafe;
aload 0
getstatic sun.misc.InnocuousThread.INHERITABLETHREADLOCALS:J
aconst_null
invokevirtual sun.misc.Unsafe.putObject:(Ljava/lang/Object;JLjava/lang/Object;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/misc/InnocuousThread;
}
SourceFile: "InnocuousThread.java"
InnerClasses:
public abstract UncaughtExceptionHandler = java.lang.Thread$UncaughtExceptionHandler of java.lang.Thread