public abstract class java.lang.ref.Reference<T>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: java.lang.ref.Reference
super_class: java.lang.Object
{
private T referent;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Signature: TT;
volatile java.lang.ref.ReferenceQueue<? super T> queue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0040) ACC_VOLATILE
Signature: Ljava/lang/ref/ReferenceQueue<-TT;>;
volatile java.lang.ref.Reference next;
descriptor: Ljava/lang/ref/Reference;
flags: (0x0040) ACC_VOLATILE
private transient java.lang.ref.Reference<T> discovered;
descriptor: Ljava/lang/ref/Reference;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
Signature: Ljava/lang/ref/Reference<TT;>;
private static final java.lang.Object processPendingLock;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static boolean processPendingActive;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: ldc Ljava/lang/ref/Reference;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic java.lang.ref.Reference.$assertionsDisabled:Z
3: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic java.lang.ref.Reference.processPendingLock:Ljava/lang/Object;
4: iconst_0
putstatic java.lang.ref.Reference.processPendingActive:Z
5: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
astore 0
start local 0 6: aload 0
astore 1
start local 1 7: goto 9
8: StackMap locals: java.lang.ThreadGroup java.lang.ThreadGroup
StackMap stack:
aload 1
astore 0
aload 0
invokevirtual java.lang.ThreadGroup.getParent:()Ljava/lang/ThreadGroup;
astore 1
9: StackMap locals:
StackMap stack:
aload 1
ifnonnull 8
end local 1 10: new java.lang.ref.Reference$ReferenceHandler
dup
aload 0
ldc "Reference Handler"
invokespecial java.lang.ref.Reference$ReferenceHandler.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/String;)V
astore 1
start local 1 11: aload 1
bipush 10
invokevirtual java.lang.Thread.setPriority:(I)V
12: aload 1
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
13: aload 1
invokevirtual java.lang.Thread.start:()V
14: new java.lang.ref.Reference$1
dup
invokespecial java.lang.ref.Reference$1.<init>:()V
invokestatic jdk.internal.access.SharedSecrets.setJavaLangRefAccess:(Ljdk/internal/access/JavaLangRefAccess;)V
end local 1 end local 0 15: return
LocalVariableTable:
Start End Slot Name Signature
6 15 0 tg Ljava/lang/ThreadGroup;
7 10 1 tgn Ljava/lang/ThreadGroup;
11 15 1 handler Ljava/lang/Thread;
private static native java.lang.ref.Reference<java.lang.Object> getAndClearReferencePendingList();
descriptor: ()Ljava/lang/ref/Reference;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Signature: ()Ljava/lang/ref/Reference<Ljava/lang/Object;>;
private static native boolean hasReferencePendingList();
descriptor: ()Z
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native void waitForReferencePendingList();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static void processPendingReferences();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=0
0: invokestatic java.lang.ref.Reference.waitForReferencePendingList:()V
1: getstatic java.lang.ref.Reference.processPendingLock:Ljava/lang/Object;
dup
astore 1
monitorenter
2: invokestatic java.lang.ref.Reference.getAndClearReferencePendingList:()Ljava/lang/ref/Reference;
astore 0
start local 0 3: iconst_1
putstatic java.lang.ref.Reference.processPendingActive:Z
4: aload 1
monitorexit
5: goto 21
end local 0 StackMap locals: top java.lang.Object
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
start local 0 8: StackMap locals: java.lang.ref.Reference
StackMap stack:
aload 0
astore 1
start local 1 9: aload 1
getfield java.lang.ref.Reference.discovered:Ljava/lang/ref/Reference;
astore 0
10: aload 1
aconst_null
putfield java.lang.ref.Reference.discovered:Ljava/lang/ref/Reference;
11: aload 1
instanceof jdk.internal.ref.Cleaner
ifeq 19
12: aload 1
checkcast jdk.internal.ref.Cleaner
invokevirtual jdk.internal.ref.Cleaner.clean:()V
13: getstatic java.lang.ref.Reference.processPendingLock:Ljava/lang/Object;
dup
astore 2
monitorenter
14: getstatic java.lang.ref.Reference.processPendingLock:Ljava/lang/Object;
invokevirtual java.lang.Object.notifyAll:()V
15: aload 2
monitorexit
16: goto 21
StackMap locals: java.lang.ref.Reference java.lang.ref.Reference java.lang.Object
StackMap stack: java.lang.Throwable
17: aload 2
monitorexit
18: athrow
19: StackMap locals:
StackMap stack:
aload 1
getfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
astore 2
start local 2 20: aload 2
getstatic java.lang.ref.ReferenceQueue.NULL:Ljava/lang/ref/ReferenceQueue;
if_acmpeq 21
aload 2
aload 1
invokevirtual java.lang.ref.ReferenceQueue.enqueue:(Ljava/lang/ref/Reference;)Z
pop
end local 2 end local 1 21: StackMap locals:
StackMap stack:
aload 0
ifnonnull 8
22: getstatic java.lang.ref.Reference.processPendingLock:Ljava/lang/Object;
dup
astore 1
monitorenter
23: iconst_0
putstatic java.lang.ref.Reference.processPendingActive:Z
24: getstatic java.lang.ref.Reference.processPendingLock:Ljava/lang/Object;
invokevirtual java.lang.Object.notifyAll:()V
25: aload 1
monitorexit
26: goto 29
StackMap locals: java.lang.ref.Reference java.lang.Object
StackMap stack: java.lang.Throwable
27: aload 1
monitorexit
28: athrow
29: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
3 6 0 pendingList Ljava/lang/ref/Reference<Ljava/lang/Object;>;
8 30 0 pendingList Ljava/lang/ref/Reference<Ljava/lang/Object;>;
9 21 1 ref Ljava/lang/ref/Reference<Ljava/lang/Object;>;
20 21 2 q Ljava/lang/ref/ReferenceQueue<-Ljava/lang/Object;>;
Exception table:
from to target type
2 5 6 any
6 7 6 any
14 16 17 any
17 18 17 any
23 26 27 any
27 28 27 any
private static boolean waitForReferenceProcessing();
descriptor: ()Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: getstatic java.lang.ref.Reference.processPendingLock:Ljava/lang/Object;
dup
astore 0
monitorenter
1: getstatic java.lang.ref.Reference.processPendingActive:Z
ifne 2
invokestatic java.lang.ref.Reference.hasReferencePendingList:()Z
ifeq 5
2: StackMap locals: java.lang.Object
StackMap stack:
getstatic java.lang.ref.Reference.processPendingLock:Ljava/lang/Object;
invokevirtual java.lang.Object.wait:()V
3: aload 0
monitorexit
4: iconst_1
ireturn
5: StackMap locals:
StackMap stack:
aload 0
monitorexit
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack: java.lang.Throwable
aload 0
monitorexit
8: athrow
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
1 4 7 any
5 6 7 any
7 8 7 any
Exceptions:
throws java.lang.InterruptedException
public T get();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.lang.ref.Reference.referent:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/ref/Reference<TT;>;
Signature: ()TT;
RuntimeVisibleAnnotations:
jdk.internal.vm.annotation.IntrinsicCandidate()
public final boolean refersTo();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.ref.Reference.refersTo0:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/ref/Reference<TT;>;
0 1 1 obj TT;
Signature: (TT;)Z
MethodParameters:
Name Flags
obj
native boolean refersTo0(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0100) ACC_NATIVE
RuntimeVisibleAnnotations:
jdk.internal.vm.annotation.IntrinsicCandidate()
MethodParameters:
Name Flags
o
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.ref.Reference.clear0:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/ref/Reference<TT;>;
private native void clear0();
descriptor: ()V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
T getFromInactiveFinalReference();
descriptor: ()Ljava/lang/Object;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic java.lang.ref.Reference.$assertionsDisabled:Z
ifne 1
aload 0
instanceof java.lang.ref.FinalReference
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic java.lang.ref.Reference.$assertionsDisabled:Z
ifne 2
aload 0
getfield java.lang.ref.Reference.next:Ljava/lang/ref/Reference;
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield java.lang.ref.Reference.referent:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/lang/ref/Reference<TT;>;
Signature: ()TT;
void clearInactiveFinalReference();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic java.lang.ref.Reference.$assertionsDisabled:Z
ifne 1
aload 0
instanceof java.lang.ref.FinalReference
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic java.lang.ref.Reference.$assertionsDisabled:Z
ifne 2
aload 0
getfield java.lang.ref.Reference.next:Ljava/lang/ref/Reference;
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield java.lang.ref.Reference.referent:Ljava/lang/Object;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/ref/Reference<TT;>;
public boolean isEnqueued();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
getstatic java.lang.ref.ReferenceQueue.ENQUEUED:Ljava/lang/ref/ReferenceQueue;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/ref/Reference<TT;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "16")
public boolean enqueue();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.ref.Reference.clear0:()V
1: aload 0
getfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
aload 0
invokevirtual java.lang.ref.ReferenceQueue.enqueue:(Ljava/lang/ref/Reference;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/ref/Reference<TT;>;
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/ref/Reference<TT;>;
Exceptions:
throws java.lang.CloneNotSupportedException
void <init>();
descriptor: (Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokespecial java.lang.ref.Reference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/ref/Reference<TT;>;
0 2 1 referent TT;
Signature: (TT;)V
MethodParameters:
Name Flags
referent
void <init>(T, java.lang.ref.ReferenceQueue<? super T>);
descriptor: (Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield java.lang.ref.Reference.referent:Ljava/lang/Object;
2: aload 0
aload 2
ifnonnull 3
getstatic java.lang.ref.ReferenceQueue.NULL:Ljava/lang/ref/ReferenceQueue;
goto 4
StackMap locals: java.lang.ref.Reference java.lang.Object java.lang.ref.ReferenceQueue
StackMap stack: java.lang.ref.Reference
3: aload 2
StackMap locals: java.lang.ref.Reference java.lang.Object java.lang.ref.ReferenceQueue
StackMap stack: java.lang.ref.Reference java.lang.ref.ReferenceQueue
4: putfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/lang/ref/Reference<TT;>;
0 6 1 referent TT;
0 6 2 queue Ljava/lang/ref/ReferenceQueue<-TT;>;
Signature: (TT;Ljava/lang/ref/ReferenceQueue<-TT;>;)V
MethodParameters:
Name Flags
referent
queue
public static void reachabilityFence(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ref Ljava/lang/Object;
RuntimeVisibleAnnotations:
jdk.internal.vm.annotation.ForceInline()
MethodParameters:
Name Flags
ref
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "Reference.java"
NestMembers:
java.lang.ref.Reference$1 java.lang.ref.Reference$ReferenceHandler
InnerClasses:
java.lang.ref.Reference$1
private ReferenceHandler = java.lang.ref.Reference$ReferenceHandler of java.lang.ref.Reference