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 final java.lang.ref.ReferenceQueue<java.lang.Object> NULL;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;
static final java.lang.ref.ReferenceQueue<java.lang.Object> ENQUEUED;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;
private final java.lang.ref.ReferenceQueue$Lock lock;
descriptor: Ljava/lang/ref/ReferenceQueue$Lock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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 final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Ljava/lang/ref/ReferenceQueue;
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.ReferenceQueue.$assertionsDisabled:Z
3: 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;
4: 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
lconst_0
putfield java.lang.ref.ReferenceQueue.queueLength:J
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 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 0
getfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
dup
astore 2
monitorenter
1: aload 1
getfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
astore 3
start local 3 2: aload 3
getstatic java.lang.ref.ReferenceQueue.NULL:Ljava/lang/ref/ReferenceQueue;
if_acmpeq 3
aload 3
getstatic java.lang.ref.ReferenceQueue.ENQUEUED:Ljava/lang/ref/ReferenceQueue;
if_acmpne 5
3: StackMap locals: java.lang.ref.ReferenceQueue$Lock java.lang.ref.ReferenceQueue
StackMap stack:
aload 2
monitorexit
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.lang.ref.ReferenceQueue.$assertionsDisabled:Z
ifne 6
aload 3
aload 0
if_acmpeq 6
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
6: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
ifnonnull 7
aload 1
goto 8
StackMap locals:
StackMap stack: java.lang.ref.Reference
7: 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.ReferenceQueue$Lock java.lang.ref.ReferenceQueue
StackMap stack: java.lang.ref.Reference java.lang.ref.Reference
8: putfield java.lang.ref.Reference.next:Ljava/lang/ref/Reference;
9: aload 0
aload 1
putfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
10: aload 0
dup
getfield java.lang.ref.ReferenceQueue.queueLength:J
lconst_1
ladd
putfield java.lang.ref.ReferenceQueue.queueLength:J
11: aload 1
getstatic java.lang.ref.ReferenceQueue.ENQUEUED:Ljava/lang/ref/ReferenceQueue;
putfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
12: aload 1
instanceof java.lang.ref.FinalReference
ifeq 14
13: iconst_1
invokestatic jdk.internal.misc.VM.addFinalRefCount:(I)V
14: StackMap locals:
StackMap stack:
aload 0
getfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
invokevirtual java.lang.Object.notifyAll:()V
15: aload 2
monitorexit
16: iconst_1
ireturn
end local 3 17: StackMap locals: java.lang.ref.ReferenceQueue java.lang.ref.Reference java.lang.ref.ReferenceQueue$Lock
StackMap stack: java.lang.Throwable
aload 2
monitorexit
18: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljava/lang/ref/ReferenceQueue<TT;>;
0 19 1 r Ljava/lang/ref/Reference<+TT;>;
2 17 3 queue Ljava/lang/ref/ReferenceQueue<*>;
Exception table:
from to target type
1 4 17 any
5 16 17 any
17 18 17 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=3, args_size=1
start local 0 0: aload 0
getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
astore 1
start local 1 1: aload 1
ifnull 12
2: aload 1
getstatic java.lang.ref.ReferenceQueue.NULL:Ljava/lang/ref/ReferenceQueue;
putfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
3: aload 1
getfield java.lang.ref.Reference.next:Ljava/lang/ref/Reference;
astore 2
start local 2 4: aload 0
aload 2
aload 1
if_acmpne 5
aconst_null
goto 6
StackMap locals: java.lang.ref.ReferenceQueue java.lang.ref.Reference java.lang.ref.Reference
StackMap stack: java.lang.ref.ReferenceQueue
5: aload 2
StackMap locals: java.lang.ref.ReferenceQueue java.lang.ref.Reference java.lang.ref.Reference
StackMap stack: java.lang.ref.ReferenceQueue java.lang.ref.Reference
6: putfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
7: aload 1
aload 1
putfield java.lang.ref.Reference.next:Ljava/lang/ref/Reference;
8: aload 0
dup
getfield java.lang.ref.ReferenceQueue.queueLength:J
lconst_1
lsub
putfield java.lang.ref.ReferenceQueue.queueLength:J
9: aload 1
instanceof java.lang.ref.FinalReference
ifeq 11
10: iconst_m1
invokestatic jdk.internal.misc.VM.addFinalRefCount:(I)V
11: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 12: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljava/lang/ref/ReferenceQueue<TT;>;
1 13 1 r Ljava/lang/ref/Reference<+TT;>;
4 12 2 rn 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=6, locals=9, 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:
lload 1
lconst_0
lcmp
ifne 7
lconst_0
goto 8
StackMap locals:
StackMap stack:
7: invokestatic java.lang.System.nanoTime:()J
StackMap locals:
StackMap stack: long
8: lstore 5
start local 5 9: StackMap locals: long
StackMap stack:
aload 0
getfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
lload 1
invokevirtual java.lang.Object.wait:(J)V
10: aload 0
invokevirtual java.lang.ref.ReferenceQueue.reallyPoll:()Ljava/lang/ref/Reference;
astore 4
11: aload 4
ifnull 13
aload 4
aload 3
monitorexit
12: areturn
13: StackMap locals:
StackMap stack:
lload 1
lconst_0
lcmp
ifeq 9
14: invokestatic java.lang.System.nanoTime:()J
lstore 7
start local 7 15: lload 1
lload 7
lload 5
lsub
ldc 1000000
ldiv
lsub
lstore 1
16: lload 1
lconst_0
lcmp
ifgt 18
aload 3
monitorexit
17: aconst_null
areturn
18: StackMap locals: long
StackMap stack:
lload 7
lstore 5
end local 7 19: goto 9
end local 5 end local 4 20: StackMap locals: java.lang.ref.ReferenceQueue long java.lang.ref.ReferenceQueue$Lock
StackMap stack: java.lang.Throwable
aload 3
monitorexit
21: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljava/lang/ref/ReferenceQueue<TT;>;
0 22 1 timeout J
4 20 4 r Ljava/lang/ref/Reference<+TT;>;
9 20 5 start J
15 19 7 end J
Exception table:
from to target type
3 5 20 any
6 12 20 any
13 17 20 any
18 21 20 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;>;
void forEach(java.util.function.Consumer<? super java.lang.ref.Reference<? extends T>>);
descriptor: (Ljava/util/function/Consumer;)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
astore 2
start local 2 1: goto 11
2: StackMap locals: java.lang.ref.Reference
StackMap stack:
aload 1
aload 2
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
3: aload 2
getfield java.lang.ref.Reference.next:Ljava/lang/ref/Reference;
astore 3
start local 3 4: aload 3
aload 2
if_acmpne 10
5: aload 2
getfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
getstatic java.lang.ref.ReferenceQueue.ENQUEUED:Ljava/lang/ref/ReferenceQueue;
if_acmpne 8
6: aconst_null
astore 2
7: goto 11
8: StackMap locals: java.lang.ref.Reference
StackMap stack:
aload 0
getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
astore 2
9: goto 11
10: StackMap locals:
StackMap stack:
aload 3
astore 2
end local 3 11: StackMap locals:
StackMap stack:
aload 2
ifnonnull 2
end local 2 12: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljava/lang/ref/ReferenceQueue<TT;>;
0 13 1 action Ljava/util/function/Consumer<-Ljava/lang/ref/Reference<+TT;>;>;
1 12 2 r Ljava/lang/ref/Reference<+TT;>;
4 11 3 rn Ljava/lang/ref/Reference<+TT;>;
Signature: (Ljava/util/function/Consumer<-Ljava/lang/ref/Reference<+TT;>;>;)V
MethodParameters:
Name Flags
action
}
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