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: .line 39
            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: .line 52
            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: .line 53
            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 // java.lang.ref.ReferenceQueue this
         0: .line 44
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 56
            aload 0 /* this */
            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: .line 58
            aload 0 /* this */
            lconst_0
            putfield java.lang.ref.ReferenceQueue.queueLength:J
         3: .line 44
            return
        end local 0 // java.lang.ref.ReferenceQueue this
      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 // java.lang.ref.ReferenceQueue this
        start local 1 // java.lang.ref.Reference r
         0: .line 61
            aload 0 /* this */
            getfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
            dup
            astore 2
            monitorenter
         1: .line 64
            aload 1 /* r */
            getfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
            astore 3 /* queue */
        start local 3 // java.lang.ref.ReferenceQueue queue
         2: .line 65
            aload 3 /* queue */
            getstatic java.lang.ref.ReferenceQueue.NULL:Ljava/lang/ref/ReferenceQueue;
            if_acmpeq 3
            aload 3 /* queue */
            getstatic java.lang.ref.ReferenceQueue.ENQUEUED:Ljava/lang/ref/ReferenceQueue;
            if_acmpne 5
         3: .line 66
      StackMap locals: java.lang.ref.ReferenceQueue$Lock java.lang.ref.ReferenceQueue
      StackMap stack:
            aload 2
            monitorexit
         4: iconst_0
            ireturn
         5: .line 68
      StackMap locals:
      StackMap stack:
            getstatic java.lang.ref.ReferenceQueue.$assertionsDisabled:Z
            ifne 6
            aload 3 /* queue */
            aload 0 /* this */
            if_acmpeq 6
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         6: .line 70
      StackMap locals:
      StackMap stack:
            aload 1 /* r */
            aload 0 /* this */
            getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
            ifnonnull 7
            aload 1 /* r */
            goto 8
      StackMap locals:
      StackMap stack: java.lang.ref.Reference
         7: aload 0 /* this */
            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: .line 71
            aload 0 /* this */
            aload 1 /* r */
            putfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
        10: .line 72
            aload 0 /* this */
            dup
            getfield java.lang.ref.ReferenceQueue.queueLength:J
            lconst_1
            ladd
            putfield java.lang.ref.ReferenceQueue.queueLength:J
        11: .line 76
            aload 1 /* r */
            getstatic java.lang.ref.ReferenceQueue.ENQUEUED:Ljava/lang/ref/ReferenceQueue;
            putfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
        12: .line 77
            aload 1 /* r */
            instanceof java.lang.ref.FinalReference
            ifeq 14
        13: .line 78
            iconst_1
            invokestatic jdk.internal.misc.VM.addFinalRefCount:(I)V
        14: .line 80
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
            invokevirtual java.lang.Object.notifyAll:()V
        15: .line 81
            aload 2
            monitorexit
        16: iconst_1
            ireturn
        end local 3 // java.lang.ref.ReferenceQueue queue
        17: .line 61
      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 // java.lang.ref.Reference r
        end local 0 // java.lang.ref.ReferenceQueue this
      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 // java.lang.ref.ReferenceQueue this
         0: .line 86
            aload 0 /* this */
            getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
            astore 1 /* r */
        start local 1 // java.lang.ref.Reference r
         1: .line 87
            aload 1 /* r */
            ifnull 12
         2: .line 88
            aload 1 /* r */
            getstatic java.lang.ref.ReferenceQueue.NULL:Ljava/lang/ref/ReferenceQueue;
            putfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
         3: .line 93
            aload 1 /* r */
            getfield java.lang.ref.Reference.next:Ljava/lang/ref/Reference;
            astore 2 /* rn */
        start local 2 // java.lang.ref.Reference rn
         4: .line 95
            aload 0 /* this */
            aload 2 /* rn */
            aload 1 /* r */
            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 /* rn */
      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: .line 98
            aload 1 /* r */
            aload 1 /* r */
            putfield java.lang.ref.Reference.next:Ljava/lang/ref/Reference;
         8: .line 99
            aload 0 /* this */
            dup
            getfield java.lang.ref.ReferenceQueue.queueLength:J
            lconst_1
            lsub
            putfield java.lang.ref.ReferenceQueue.queueLength:J
         9: .line 100
            aload 1 /* r */
            instanceof java.lang.ref.FinalReference
            ifeq 11
        10: .line 101
            iconst_m1
            invokestatic jdk.internal.misc.VM.addFinalRefCount:(I)V
        11: .line 103
      StackMap locals:
      StackMap stack:
            aload 1 /* r */
            areturn
        end local 2 // java.lang.ref.Reference rn
        12: .line 105
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        end local 1 // java.lang.ref.Reference r
        end local 0 // java.lang.ref.ReferenceQueue this
      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 // java.lang.ref.ReferenceQueue this
         0: .line 117
            aload 0 /* this */
            getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
            ifnonnull 2
         1: .line 118
            aconst_null
            areturn
         2: .line 119
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
            dup
            astore 1
            monitorenter
         3: .line 120
            aload 0 /* this */
            invokevirtual java.lang.ref.ReferenceQueue.reallyPoll:()Ljava/lang/ref/Reference;
            aload 1
            monitorexit
         4: areturn
         5: .line 119
      StackMap locals: java.lang.ref.ReferenceQueue java.lang.ref.ReferenceQueue$Lock
      StackMap stack: java.lang.Throwable
            aload 1
            monitorexit
         6: athrow
        end local 0 // java.lang.ref.ReferenceQueue this
      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 // java.lang.ref.ReferenceQueue this
        start local 1 // long timeout
         0: .line 147
            lload 1 /* timeout */
            lconst_0
            lcmp
            ifge 2
         1: .line 148
            new java.lang.IllegalArgumentException
            dup
            ldc "Negative timeout value"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 150
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
            dup
            astore 3
            monitorenter
         3: .line 151
            aload 0 /* this */
            invokevirtual java.lang.ref.ReferenceQueue.reallyPoll:()Ljava/lang/ref/Reference;
            astore 4 /* r */
        start local 4 // java.lang.ref.Reference r
         4: .line 152
            aload 4 /* r */
            ifnull 6
            aload 4 /* r */
            aload 3
            monitorexit
         5: areturn
         6: .line 153
      StackMap locals: java.lang.ref.ReferenceQueue$Lock java.lang.ref.Reference
      StackMap stack:
            lload 1 /* timeout */
            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 */
        start local 5 // long start
         9: .line 155
      StackMap locals: long
      StackMap stack:
            aload 0 /* this */
            getfield java.lang.ref.ReferenceQueue.lock:Ljava/lang/ref/ReferenceQueue$Lock;
            lload 1 /* timeout */
            invokevirtual java.lang.Object.wait:(J)V
        10: .line 156
            aload 0 /* this */
            invokevirtual java.lang.ref.ReferenceQueue.reallyPoll:()Ljava/lang/ref/Reference;
            astore 4 /* r */
        11: .line 157
            aload 4 /* r */
            ifnull 13
            aload 4 /* r */
            aload 3
            monitorexit
        12: areturn
        13: .line 158
      StackMap locals:
      StackMap stack:
            lload 1 /* timeout */
            lconst_0
            lcmp
            ifeq 9
        14: .line 159
            invokestatic java.lang.System.nanoTime:()J
            lstore 7 /* end */
        start local 7 // long end
        15: .line 160
            lload 1 /* timeout */
            lload 7 /* end */
            lload 5 /* start */
            lsub
            ldc 1000000
            ldiv
            lsub
            lstore 1 /* timeout */
        16: .line 161
            lload 1 /* timeout */
            lconst_0
            lcmp
            ifgt 18
            aload 3
            monitorexit
        17: aconst_null
            areturn
        18: .line 162
      StackMap locals: long
      StackMap stack:
            lload 7 /* end */
            lstore 5 /* start */
        end local 7 // long end
        19: .line 154
            goto 9
        end local 5 // long start
        end local 4 // java.lang.ref.Reference r
        20: .line 150
      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 // long timeout
        end local 0 // java.lang.ref.ReferenceQueue this
      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 // java.lang.ref.ReferenceQueue this
         0: .line 176
            aload 0 /* this */
            lconst_0
            invokevirtual java.lang.ref.ReferenceQueue.remove:(J)Ljava/lang/ref/Reference;
            areturn
        end local 0 // java.lang.ref.ReferenceQueue this
      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 // java.lang.ref.ReferenceQueue this
        start local 1 // java.util.function.Consumer action
         0: .line 188
            aload 0 /* this */
            getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
            astore 2 /* r */
        start local 2 // java.lang.ref.Reference r
         1: goto 11
         2: .line 189
      StackMap locals: java.lang.ref.Reference
      StackMap stack:
            aload 1 /* action */
            aload 2 /* r */
            invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
         3: .line 191
            aload 2 /* r */
            getfield java.lang.ref.Reference.next:Ljava/lang/ref/Reference;
            astore 3 /* rn */
        start local 3 // java.lang.ref.Reference rn
         4: .line 192
            aload 3 /* rn */
            aload 2 /* r */
            if_acmpne 10
         5: .line 193
            aload 2 /* r */
            getfield java.lang.ref.Reference.queue:Ljava/lang/ref/ReferenceQueue;
            getstatic java.lang.ref.ReferenceQueue.ENQUEUED:Ljava/lang/ref/ReferenceQueue;
            if_acmpne 8
         6: .line 195
            aconst_null
            astore 2 /* r */
         7: .line 196
            goto 11
         8: .line 199
      StackMap locals: java.lang.ref.Reference
      StackMap stack:
            aload 0 /* this */
            getfield java.lang.ref.ReferenceQueue.head:Ljava/lang/ref/Reference;
            astore 2 /* r */
         9: .line 201
            goto 11
        10: .line 203
      StackMap locals:
      StackMap stack:
            aload 3 /* rn */
            astore 2 /* r */
        end local 3 // java.lang.ref.Reference rn
        11: .line 188
      StackMap locals:
      StackMap stack:
            aload 2 /* r */
            ifnonnull 2
        end local 2 // java.lang.ref.Reference r
        12: .line 206
            return
        end local 1 // java.util.function.Consumer action
        end local 0 // java.lang.ref.ReferenceQueue this
      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