public class java.lang.ref.ReferenceQueue<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.lang.ref.ReferenceQueue
super_class: java.lang.Object
{
static java.lang.ref.ReferenceQueue NULL;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0008) ACC_STATIC
static java.lang.ref.ReferenceQueue ENQUEUED;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0008) ACC_STATIC
private java.lang.ref.ReferenceQueue$Lock lock;
descriptor: Ljava/lang/ref/ReferenceQueue$Lock;
flags: (0x0002) ACC_PRIVATE
private volatile java.lang.ref.Reference<? extends T> head;
descriptor: Ljava/lang/ref/Reference;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/lang/ref/Reference<+TT;>;
private long queueLength;
descriptor: J
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.ref.ReferenceQueue$Null
dup
invokespecial java.lang.ref.ReferenceQueue$Null.<init>:()V
putstatic java.lang.ref.ReferenceQueue.NULL:Ljava/lang/ref/ReferenceQueue;
1: new java.lang.ref.ReferenceQueue$Null
dup
invokespecial java.lang.ref.ReferenceQueue$Null.<init>:()V
putstatic java.lang.ref.ReferenceQueue.ENQUEUED:Ljava/lang/ref/ReferenceQueue;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.ref.ReferenceQueue$Lock
dup
invokespecial java.lang.ref.ReferenceQueue$Lock.<init>:()V
putfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
2: aload 0
aconst_null
putfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
3: aload 0
lconst_0
putfield java.lang.ref.ReferenceQueue.queueLength:J
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/lang/ref/ReferenceQueue<TT;>;
boolean enqueue(java.lang.ref.Reference<? extends T>);
descriptor: (Ljava/lang/ref/Reference;)Z
flags: (0x0000)
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 2
monitorenter
1: aload 1
getfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
getstatic java.lang.ref.ReferenceQueue.ENQUEUED:Ljava/lang/ref/ReferenceQueue;
if_acmpne 3
aload 2
monitorexit
2: iconst_0
ireturn
3: StackMap locals: java.lang.ref.Reference
StackMap stack:
aload 0
getfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
dup
astore 3
monitorenter
4: aload 1
getstatic java.lang.ref.ReferenceQueue.ENQUEUED:Ljava/lang/ref/ReferenceQueue;
putfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
5: aload 1
aload 0
getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
ifnonnull 6
aload 1
goto 7
StackMap locals: java.lang.ref.ReferenceQueue java.lang.ref.Reference java.lang.ref.Reference java.lang.ref.ReferenceQueue$Lock
StackMap stack: java.lang.ref.Reference
6: aload 0
getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
StackMap locals: java.lang.ref.ReferenceQueue java.lang.ref.Reference java.lang.ref.Reference java.lang.ref.ReferenceQueue$Lock
StackMap stack: java.lang.ref.Reference java.lang.ref.Reference
7: putfield java.lang.ref.Reference.next:Ljava/lang/ref/Reference;
8: aload 0
aload 1
putfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
9: aload 0
dup
getfield java.lang.ref.ReferenceQueue.queueLength:J
lconst_1
ladd
putfield java.lang.ref.ReferenceQueue.queueLength:J
10: aload 1
instanceof java.lang.ref.FinalReference
ifeq 12
11: iconst_1
invokestatic sun.misc.VM.addFinalRefCount:(I)V
12: StackMap locals:
StackMap stack:
aload 0
getfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
invokevirtual java.lang.Object.notifyAll:()V
13: aload 3
monitorexit
14: aload 2
monitorexit
15: iconst_1
ireturn
16: StackMap locals:
StackMap stack: java.lang.Throwable
aload 3
monitorexit
17: athrow
18: StackMap locals: java.lang.ref.ReferenceQueue java.lang.ref.Reference java.lang.ref.Reference
StackMap stack: java.lang.Throwable
aload 2
monitorexit
19: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljava/lang/ref/ReferenceQueue<TT;>;
0 20 1 r Ljava/lang/ref/Reference<+TT;>;
Exception table:
from to target type
4 14 16 any
16 17 16 any
1 2 18 any
3 15 18 any
16 19 18 any
Signature: (Ljava/lang/ref/Reference<+TT;>;)Z
MethodParameters:
Name Flags
r
private java.lang.ref.Reference<? extends T> reallyPoll();
descriptor: ()Ljava/lang/ref/Reference;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
ifnull 11
1: aload 0
getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
astore 1
start local 1 2: aload 0
aload 1
getfield java.lang.ref.Reference.next:Ljava/lang/ref/Reference;
aload 1
if_acmpne 3
aconst_null
goto 4
StackMap locals: java.lang.ref.ReferenceQueue java.lang.ref.Reference
StackMap stack: java.lang.ref.ReferenceQueue
3: aload 1
getfield java.lang.ref.Reference.next:Ljava/lang/ref/Reference;
StackMap locals: java.lang.ref.ReferenceQueue java.lang.ref.Reference
StackMap stack: java.lang.ref.ReferenceQueue java.lang.ref.Reference
4: putfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
5: aload 1
getstatic java.lang.ref.ReferenceQueue.NULL:Ljava/lang/ref/ReferenceQueue;
putfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
6: aload 1
aload 1
putfield java.lang.ref.Reference.next:Ljava/lang/ref/Reference;
7: aload 0
dup
getfield java.lang.ref.ReferenceQueue.queueLength:J
lconst_1
lsub
putfield java.lang.ref.ReferenceQueue.queueLength:J
8: aload 1
instanceof java.lang.ref.FinalReference
ifeq 10
9: iconst_m1
invokestatic sun.misc.VM.addFinalRefCount:(I)V
10: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 11: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/lang/ref/ReferenceQueue<TT;>;
2 11 1 r Ljava/lang/ref/Reference<+TT;>;
Signature: ()Ljava/lang/ref/Reference<+TT;>;
public java.lang.ref.Reference<? extends T> poll();
descriptor: ()Ljava/lang/ref/Reference;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
dup
astore 1
monitorenter
3: aload 0
invokevirtual java.lang.ref.ReferenceQueue.reallyPoll:()Ljava/lang/ref/Reference;
aload 1
monitorexit
4: areturn
5: StackMap locals: java.lang.ref.ReferenceQueue java.lang.ref.ReferenceQueue$Lock
StackMap stack: java.lang.Throwable
aload 1
monitorexit
6: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/lang/ref/ReferenceQueue<TT;>;
Exception table:
from to target type
3 4 5 any
5 6 5 any
Signature: ()Ljava/lang/ref/Reference<+TT;>;
public java.lang.ref.Reference<? extends T> remove(long);
descriptor: (J)Ljava/lang/ref/Reference;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "Negative timeout value"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
dup
astore 3
monitorenter
3: aload 0
invokevirtual java.lang.ref.ReferenceQueue.reallyPoll:()Ljava/lang/ref/Reference;
astore 4
start local 4 4: aload 4
ifnull 6
aload 4
aload 3
monitorexit
5: areturn
6: StackMap locals: java.lang.ref.ReferenceQueue$Lock java.lang.ref.Reference
StackMap stack:
aload 0
getfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
lload 1
invokevirtual java.lang.Object.wait:(J)V
7: aload 0
invokevirtual java.lang.ref.ReferenceQueue.reallyPoll:()Ljava/lang/ref/Reference;
astore 4
8: aload 4
ifnull 10
aload 4
aload 3
monitorexit
9: areturn
10: StackMap locals:
StackMap stack:
lload 1
lconst_0
lcmp
ifeq 6
aload 3
monitorexit
11: aconst_null
areturn
end local 4 12: StackMap locals: java.lang.ref.ReferenceQueue long java.lang.ref.ReferenceQueue$Lock
StackMap stack: java.lang.Throwable
aload 3
monitorexit
13: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljava/lang/ref/ReferenceQueue<TT;>;
0 14 1 timeout J
4 12 4 r Ljava/lang/ref/Reference<+TT;>;
Exception table:
from to target type
3 5 12 any
6 9 12 any
10 11 12 any
12 13 12 any
Exceptions:
throws java.lang.IllegalArgumentException, java.lang.InterruptedException
Signature: (J)Ljava/lang/ref/Reference<+TT;>;
MethodParameters:
Name Flags
timeout
public java.lang.ref.Reference<? extends T> remove();
descriptor: ()Ljava/lang/ref/Reference;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
invokevirtual java.lang.ref.ReferenceQueue.remove:(J)Ljava/lang/ref/Reference;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/ref/ReferenceQueue<TT;>;
Exceptions:
throws java.lang.InterruptedException
Signature: ()Ljava/lang/ref/Reference<+TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "ReferenceQueue.java"
NestMembers:
java.lang.ref.ReferenceQueue$Lock java.lang.ref.ReferenceQueue$Null
InnerClasses:
private Lock = java.lang.ref.ReferenceQueue$Lock of java.lang.ref.ReferenceQueue
private Null = java.lang.ref.ReferenceQueue$Null of java.lang.ref.ReferenceQueue