public class jdk.internal.ref.Cleaner extends java.lang.ref.PhantomReference<java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.ref.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 jdk.internal.ref.Cleaner first;
descriptor: Ljdk/internal/ref/Cleaner;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private jdk.internal.ref.Cleaner next;
descriptor: Ljdk/internal/ref/Cleaner;
flags: (0x0002) ACC_PRIVATE
private jdk.internal.ref.Cleaner prev;
descriptor: Ljdk/internal/ref/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 jdk.internal.ref.Cleaner.dummyQueue:Ljava/lang/ref/ReferenceQueue;
1: aconst_null
putstatic jdk.internal.ref.Cleaner.first:Ljdk/internal/ref/Cleaner;
return
LocalVariableTable:
Start End Slot Name Signature
private static synchronized jdk.internal.ref.Cleaner add(jdk.internal.ref.Cleaner);
descriptor: (Ljdk/internal/ref/Cleaner;)Ljdk/internal/ref/Cleaner;
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic jdk.internal.ref.Cleaner.first:Ljdk/internal/ref/Cleaner;
ifnull 3
1: aload 0
getstatic jdk.internal.ref.Cleaner.first:Ljdk/internal/ref/Cleaner;
putfield jdk.internal.ref.Cleaner.next:Ljdk/internal/ref/Cleaner;
2: getstatic jdk.internal.ref.Cleaner.first:Ljdk/internal/ref/Cleaner;
aload 0
putfield jdk.internal.ref.Cleaner.prev:Ljdk/internal/ref/Cleaner;
3: StackMap locals:
StackMap stack:
aload 0
putstatic jdk.internal.ref.Cleaner.first:Ljdk/internal/ref/Cleaner;
4: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 cl Ljdk/internal/ref/Cleaner;
MethodParameters:
Name Flags
cl
private static synchronized boolean remove(jdk.internal.ref.Cleaner);
descriptor: (Ljdk/internal/ref/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 jdk.internal.ref.Cleaner.next:Ljdk/internal/ref/Cleaner;
aload 0
if_acmpne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
getstatic jdk.internal.ref.Cleaner.first:Ljdk/internal/ref/Cleaner;
aload 0
if_acmpne 6
3: aload 0
getfield jdk.internal.ref.Cleaner.next:Ljdk/internal/ref/Cleaner;
ifnull 5
4: aload 0
getfield jdk.internal.ref.Cleaner.next:Ljdk/internal/ref/Cleaner;
putstatic jdk.internal.ref.Cleaner.first:Ljdk/internal/ref/Cleaner;
goto 6
5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.ref.Cleaner.prev:Ljdk/internal/ref/Cleaner;
putstatic jdk.internal.ref.Cleaner.first:Ljdk/internal/ref/Cleaner;
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.ref.Cleaner.next:Ljdk/internal/ref/Cleaner;
ifnull 8
7: aload 0
getfield jdk.internal.ref.Cleaner.next:Ljdk/internal/ref/Cleaner;
aload 0
getfield jdk.internal.ref.Cleaner.prev:Ljdk/internal/ref/Cleaner;
putfield jdk.internal.ref.Cleaner.prev:Ljdk/internal/ref/Cleaner;
8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.ref.Cleaner.prev:Ljdk/internal/ref/Cleaner;
ifnull 10
9: aload 0
getfield jdk.internal.ref.Cleaner.prev:Ljdk/internal/ref/Cleaner;
aload 0
getfield jdk.internal.ref.Cleaner.next:Ljdk/internal/ref/Cleaner;
putfield jdk.internal.ref.Cleaner.next:Ljdk/internal/ref/Cleaner;
10: StackMap locals:
StackMap stack:
aload 0
aload 0
putfield jdk.internal.ref.Cleaner.next:Ljdk/internal/ref/Cleaner;
11: aload 0
aload 0
putfield jdk.internal.ref.Cleaner.prev:Ljdk/internal/ref/Cleaner;
12: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 cl Ljdk/internal/ref/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 jdk.internal.ref.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 jdk.internal.ref.Cleaner.next:Ljdk/internal/ref/Cleaner;
2: aload 0
aconst_null
putfield jdk.internal.ref.Cleaner.prev:Ljdk/internal/ref/Cleaner;
3: aload 0
aload 2
putfield jdk.internal.ref.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 Ljdk/internal/ref/Cleaner;
0 5 1 referent Ljava/lang/Object;
0 5 2 thunk Ljava/lang/Runnable;
MethodParameters:
Name Flags
referent
thunk
public static jdk.internal.ref.Cleaner create(java.lang.Object, java.lang.Runnable);
descriptor: (Ljava/lang/Object;Ljava/lang/Runnable;)Ljdk/internal/ref/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 jdk.internal.ref.Cleaner
dup
aload 0
aload 1
invokespecial jdk.internal.ref.Cleaner.<init>:(Ljava/lang/Object;Ljava/lang/Runnable;)V
invokestatic jdk.internal.ref.Cleaner.add:(Ljdk/internal/ref/Cleaner;)Ljdk/internal/ref/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 jdk.internal.ref.Cleaner.remove:(Ljdk/internal/ref/Cleaner;)Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.ref.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 jdk.internal.ref.Cleaner$1
dup
aload 0
aload 1
invokespecial jdk.internal.ref.Cleaner$1.<init>:(Ljdk/internal/ref/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 Ljdk/internal/ref/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:
jdk.internal.ref.Cleaner$1
InnerClasses:
jdk.internal.ref.Cleaner$1