public abstract class jdk.internal.ref.WeakCleanable<T> extends java.lang.ref.WeakReference<T> implements java.lang.ref.Cleaner$Cleanable
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: jdk.internal.ref.WeakCleanable
super_class: java.lang.ref.WeakReference
{
jdk.internal.ref.WeakCleanable<?> prev;
descriptor: Ljdk/internal/ref/WeakCleanable;
flags: (0x0000)
Signature: Ljdk/internal/ref/WeakCleanable<*>;
jdk.internal.ref.WeakCleanable<?> next;
descriptor: Ljdk/internal/ref/WeakCleanable;
flags: (0x0000)
Signature: Ljdk/internal/ref/WeakCleanable<*>;
private final jdk.internal.ref.WeakCleanable<?> list;
descriptor: Ljdk/internal/ref/WeakCleanable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljdk/internal/ref/WeakCleanable<*>;
public void <init>(T, java.lang.ref.Cleaner);
descriptor: (Ljava/lang/Object;Ljava/lang/ref/Cleaner;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
aload 2
invokestatic jdk.internal.ref.CleanerImpl.getCleanerImpl:(Ljava/lang/ref/Cleaner;)Ljdk/internal/ref/CleanerImpl;
getfield jdk.internal.ref.CleanerImpl.queue:Ljava/lang/ref/ReferenceQueue;
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
1: aload 0
aload 0
putfield jdk.internal.ref.WeakCleanable.prev:Ljdk/internal/ref/WeakCleanable;
aload 0
aload 0
putfield jdk.internal.ref.WeakCleanable.next:Ljdk/internal/ref/WeakCleanable;
2: aload 0
aload 2
invokestatic jdk.internal.ref.CleanerImpl.getCleanerImpl:(Ljava/lang/ref/Cleaner;)Ljdk/internal/ref/CleanerImpl;
getfield jdk.internal.ref.CleanerImpl.weakCleanableList:Ljdk/internal/ref/WeakCleanable;
putfield jdk.internal.ref.WeakCleanable.list:Ljdk/internal/ref/WeakCleanable;
3: aload 0
invokevirtual jdk.internal.ref.WeakCleanable.insert:()V
4: aload 1
invokestatic java.lang.ref.Reference.reachabilityFence:(Ljava/lang/Object;)V
5: aload 2
invokestatic java.lang.ref.Reference.reachabilityFence:(Ljava/lang/Object;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/ref/WeakCleanable<TT;>;
0 7 1 referent TT;
0 7 2 cleaner Ljava/lang/ref/Cleaner;
Signature: (TT;Ljava/lang/ref/Cleaner;)V
MethodParameters:
Name Flags
referent
cleaner
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
aconst_null
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
1: aload 0
aload 0
putfield jdk.internal.ref.WeakCleanable.prev:Ljdk/internal/ref/WeakCleanable;
aload 0
aload 0
putfield jdk.internal.ref.WeakCleanable.next:Ljdk/internal/ref/WeakCleanable;
2: aload 0
aload 0
putfield jdk.internal.ref.WeakCleanable.list:Ljdk/internal/ref/WeakCleanable;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/ref/WeakCleanable<TT;>;
private void insert();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.ref.WeakCleanable.list:Ljdk/internal/ref/WeakCleanable;
dup
astore 1
monitorenter
1: aload 0
aload 0
getfield jdk.internal.ref.WeakCleanable.list:Ljdk/internal/ref/WeakCleanable;
putfield jdk.internal.ref.WeakCleanable.prev:Ljdk/internal/ref/WeakCleanable;
2: aload 0
aload 0
getfield jdk.internal.ref.WeakCleanable.list:Ljdk/internal/ref/WeakCleanable;
getfield jdk.internal.ref.WeakCleanable.next:Ljdk/internal/ref/WeakCleanable;
putfield jdk.internal.ref.WeakCleanable.next:Ljdk/internal/ref/WeakCleanable;
3: aload 0
getfield jdk.internal.ref.WeakCleanable.next:Ljdk/internal/ref/WeakCleanable;
aload 0
putfield jdk.internal.ref.WeakCleanable.prev:Ljdk/internal/ref/WeakCleanable;
4: aload 0
getfield jdk.internal.ref.WeakCleanable.list:Ljdk/internal/ref/WeakCleanable;
aload 0
putfield jdk.internal.ref.WeakCleanable.next:Ljdk/internal/ref/WeakCleanable;
5: aload 1
monitorexit
6: goto 9
StackMap locals: jdk.internal.ref.WeakCleanable jdk.internal.ref.WeakCleanable
StackMap stack: java.lang.Throwable
7: aload 1
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/ref/WeakCleanable<TT;>;
Exception table:
from to target type
1 6 7 any
7 8 7 any
private boolean remove();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.ref.WeakCleanable.list:Ljdk/internal/ref/WeakCleanable;
dup
astore 1
monitorenter
1: aload 0
getfield jdk.internal.ref.WeakCleanable.next:Ljdk/internal/ref/WeakCleanable;
aload 0
if_acmpeq 8
2: aload 0
getfield jdk.internal.ref.WeakCleanable.next:Ljdk/internal/ref/WeakCleanable;
aload 0
getfield jdk.internal.ref.WeakCleanable.prev:Ljdk/internal/ref/WeakCleanable;
putfield jdk.internal.ref.WeakCleanable.prev:Ljdk/internal/ref/WeakCleanable;
3: aload 0
getfield jdk.internal.ref.WeakCleanable.prev:Ljdk/internal/ref/WeakCleanable;
aload 0
getfield jdk.internal.ref.WeakCleanable.next:Ljdk/internal/ref/WeakCleanable;
putfield jdk.internal.ref.WeakCleanable.next:Ljdk/internal/ref/WeakCleanable;
4: aload 0
aload 0
putfield jdk.internal.ref.WeakCleanable.prev:Ljdk/internal/ref/WeakCleanable;
5: aload 0
aload 0
putfield jdk.internal.ref.WeakCleanable.next:Ljdk/internal/ref/WeakCleanable;
6: aload 1
monitorexit
7: iconst_1
ireturn
8: StackMap locals: jdk.internal.ref.WeakCleanable
StackMap stack:
aload 1
monitorexit
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
11: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/internal/ref/WeakCleanable<TT;>;
Exception table:
from to target type
1 7 10 any
8 9 10 any
10 11 10 any
boolean isListEmpty();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.ref.WeakCleanable.list:Ljdk/internal/ref/WeakCleanable;
dup
astore 1
monitorenter
1: aload 0
getfield jdk.internal.ref.WeakCleanable.list:Ljdk/internal/ref/WeakCleanable;
aload 0
getfield jdk.internal.ref.WeakCleanable.list:Ljdk/internal/ref/WeakCleanable;
getfield jdk.internal.ref.WeakCleanable.next:Ljdk/internal/ref/WeakCleanable;
if_acmpne 2
iconst_1
goto 3
StackMap locals: jdk.internal.ref.WeakCleanable
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: aload 1
monitorexit
4: ireturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
6: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/ref/WeakCleanable<TT;>;
Exception table:
from to target type
1 4 5 any
5 6 5 any
public final void clean();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.ref.WeakCleanable.remove:()Z
ifeq 3
1: aload 0
invokespecial java.lang.ref.WeakReference.clear:()V
2: aload 0
invokevirtual jdk.internal.ref.WeakCleanable.performCleanup:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/ref/WeakCleanable<TT;>;
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.ref.WeakCleanable.remove:()Z
ifeq 2
1: aload 0
invokespecial java.lang.ref.WeakReference.clear:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/ref/WeakCleanable<TT;>;
protected abstract void performCleanup();
descriptor: ()V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
public final boolean isEnqueued();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
ldc "isEnqueued"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/ref/WeakCleanable<TT;>;
public final boolean enqueue();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
ldc "enqueue"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/ref/WeakCleanable<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/ref/WeakReference<TT;>;Ljava/lang/ref/Cleaner$Cleanable;
SourceFile: "WeakCleanable.java"
InnerClasses:
public abstract Cleanable = java.lang.ref.Cleaner$Cleanable of java.lang.ref.Cleaner