public class sun.misc.Cleaner extends java.lang.ref.PhantomReference<java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.misc.Cleaner
super_class: java.lang.ref.PhantomReference
{
private static final java.lang.ref.ReferenceQueue<java.lang.Object> dummyQueue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;
private static sun.misc.Cleaner first;
descriptor: Lsun/misc/Cleaner;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private sun.misc.Cleaner next;
descriptor: Lsun/misc/Cleaner;
flags: (0x0002) ACC_PRIVATE
private sun.misc.Cleaner prev;
descriptor: Lsun/misc/Cleaner;
flags: (0x0002) ACC_PRIVATE
private final java.lang.Runnable thunk;
descriptor: Ljava/lang/Runnable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putstatic sun.misc.Cleaner.dummyQueue:Ljava/lang/ref/ReferenceQueue;
1: aconst_null
putstatic sun.misc.Cleaner.first:Lsun/misc/Cleaner;
return
LocalVariableTable:
Start End Slot Name Signature
private static synchronized sun.misc.Cleaner add(sun.misc.Cleaner);
descriptor: (Lsun/misc/Cleaner;)Lsun/misc/Cleaner;
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.misc.Cleaner.first:Lsun/misc/Cleaner;
ifnull 3
1: aload 0
getstatic sun.misc.Cleaner.first:Lsun/misc/Cleaner;
putfield sun.misc.Cleaner.next:Lsun/misc/Cleaner;
2: getstatic sun.misc.Cleaner.first:Lsun/misc/Cleaner;
aload 0
putfield sun.misc.Cleaner.prev:Lsun/misc/Cleaner;
3: StackMap locals:
StackMap stack:
aload 0
putstatic sun.misc.Cleaner.first:Lsun/misc/Cleaner;
4: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 cl Lsun/misc/Cleaner;
MethodParameters:
Name Flags
cl
private static synchronized boolean remove(sun.misc.Cleaner);
descriptor: (Lsun/misc/Cleaner;)Z
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.misc.Cleaner.next:Lsun/misc/Cleaner;
aload 0
if_acmpne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
getstatic sun.misc.Cleaner.first:Lsun/misc/Cleaner;
aload 0
if_acmpne 6
3: aload 0
getfield sun.misc.Cleaner.next:Lsun/misc/Cleaner;
ifnull 5
4: aload 0
getfield sun.misc.Cleaner.next:Lsun/misc/Cleaner;
putstatic sun.misc.Cleaner.first:Lsun/misc/Cleaner;
goto 6
5: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.Cleaner.prev:Lsun/misc/Cleaner;
putstatic sun.misc.Cleaner.first:Lsun/misc/Cleaner;
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.Cleaner.next:Lsun/misc/Cleaner;
ifnull 8
7: aload 0
getfield sun.misc.Cleaner.next:Lsun/misc/Cleaner;
aload 0
getfield sun.misc.Cleaner.prev:Lsun/misc/Cleaner;
putfield sun.misc.Cleaner.prev:Lsun/misc/Cleaner;
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.Cleaner.prev:Lsun/misc/Cleaner;
ifnull 10
9: aload 0
getfield sun.misc.Cleaner.prev:Lsun/misc/Cleaner;
aload 0
getfield sun.misc.Cleaner.next:Lsun/misc/Cleaner;
putfield sun.misc.Cleaner.next:Lsun/misc/Cleaner;
10: StackMap locals:
StackMap stack:
aload 0
aload 0
putfield sun.misc.Cleaner.next:Lsun/misc/Cleaner;
11: aload 0
aload 0
putfield sun.misc.Cleaner.prev:Lsun/misc/Cleaner;
12: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 cl Lsun/misc/Cleaner;
MethodParameters:
Name Flags
cl
private void <init>(java.lang.Object, java.lang.Runnable);
descriptor: (Ljava/lang/Object;Ljava/lang/Runnable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
getstatic sun.misc.Cleaner.dummyQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial java.lang.ref.PhantomReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
1: aload 0
aconst_null
putfield sun.misc.Cleaner.next:Lsun/misc/Cleaner;
2: aload 0
aconst_null
putfield sun.misc.Cleaner.prev:Lsun/misc/Cleaner;
3: aload 0
aload 2
putfield sun.misc.Cleaner.thunk:Ljava/lang/Runnable;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/misc/Cleaner;
0 5 1 referent Ljava/lang/Object;
0 5 2 thunk Ljava/lang/Runnable;
MethodParameters:
Name Flags
referent
thunk
public static sun.misc.Cleaner create(java.lang.Object, java.lang.Runnable);
descriptor: (Ljava/lang/Object;Ljava/lang/Runnable;)Lsun/misc/Cleaner;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new sun.misc.Cleaner
dup
aload 0
aload 1
invokespecial sun.misc.Cleaner.<init>:(Ljava/lang/Object;Ljava/lang/Runnable;)V
invokestatic sun.misc.Cleaner.add:(Lsun/misc/Cleaner;)Lsun/misc/Cleaner;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 ob Ljava/lang/Object;
0 3 1 thunk Ljava/lang/Runnable;
MethodParameters:
Name Flags
ob
thunk
public void clean();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic sun.misc.Cleaner.remove:(Lsun/misc/Cleaner;)Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.Cleaner.thunk:Ljava/lang/Runnable;
invokeinterface java.lang.Runnable.run:()V
3: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
4: astore 1
start local 1 5: new sun.misc.Cleaner$1
dup
aload 0
aload 1
invokespecial sun.misc.Cleaner$1.<init>:(Lsun/misc/Cleaner;Ljava/lang/Throwable;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/misc/Cleaner;
5 6 1 x Ljava/lang/Throwable;
Exception table:
from to target type
2 3 4 Class java.lang.Throwable
}
Signature: Ljava/lang/ref/PhantomReference<Ljava/lang/Object;>;
SourceFile: "Cleaner.java"
NestMembers:
sun.misc.Cleaner$1
InnerClasses:
sun.misc.Cleaner$1