public class java.util.concurrent.PriorityBlockingQueue<E> extends java.util.AbstractQueue<E> implements java.util.concurrent.BlockingQueue<E>, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.util.concurrent.PriorityBlockingQueue
super_class: java.util.AbstractQueue
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5595510919245408276
private static final int DEFAULT_INITIAL_CAPACITY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 11
private transient java.lang.Object[] queue;
descriptor: [Ljava/lang/Object;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient int size;
descriptor: I
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient java.util.Comparator<? super E> comparator;
descriptor: Ljava/util/Comparator;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
Signature: Ljava/util/Comparator<-TE;>;
private final java.util.concurrent.locks.ReentrantLock lock;
descriptor: Ljava/util/concurrent/locks/ReentrantLock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.locks.Condition notEmpty;
descriptor: Ljava/util/concurrent/locks/Condition;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile transient int allocationSpinLock;
descriptor: I
flags: (0x00c2) ACC_PRIVATE, ACC_VOLATILE, ACC_TRANSIENT
private java.util.PriorityQueue<E> q;
descriptor: Ljava/util/PriorityQueue;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/PriorityQueue<TE;>;
private static final java.lang.invoke.VarHandle ALLOCATIONSPINLOCK;
descriptor: Ljava/lang/invoke/VarHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
astore 0
start local 0 1: aload 0
ldc Ljava/util/concurrent/PriorityBlockingQueue;
2: ldc "allocationSpinLock"
3: getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
4: invokevirtual java.lang.invoke.MethodHandles$Lookup.findVarHandle:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
putstatic java.util.concurrent.PriorityBlockingQueue.ALLOCATIONSPINLOCK:Ljava/lang/invoke/VarHandle;
end local 0 5: goto 8
StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
6: astore 0
start local 0 7: new java.lang.ExceptionInInitializerError
dup
aload 0
invokespecial java.lang.ExceptionInInitializerError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 8: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 5 0 l Ljava/lang/invoke/MethodHandles$Lookup;
7 8 0 e Ljava/lang/ReflectiveOperationException;
Exception table:
from to target type
0 5 6 Class java.lang.ReflectiveOperationException
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
bipush 11
aconst_null
invokespecial java.util.concurrent.PriorityBlockingQueue.<init>:(ILjava/util/Comparator;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
aconst_null
invokespecial java.util.concurrent.PriorityBlockingQueue.<init>:(ILjava/util/Comparator;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 2 1 initialCapacity I
MethodParameters:
Name Flags
initialCapacity
public void <init>(int, java.util.Comparator<? super E>);
descriptor: (ILjava/util/Comparator;)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
invokespecial java.util.AbstractQueue.<init>:()V
1: aload 0
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
2: aload 0
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.newCondition:()Ljava/util/concurrent/locks/Condition;
putfield java.util.concurrent.PriorityBlockingQueue.notEmpty:Ljava/util/concurrent/locks/Condition;
3: iload 1
iconst_1
if_icmpge 5
4: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
5: StackMap locals: java.util.concurrent.PriorityBlockingQueue int java.util.Comparator
StackMap stack:
aload 0
aload 2
putfield java.util.concurrent.PriorityBlockingQueue.comparator:Ljava/util/Comparator;
6: aload 0
iconst_1
iload 1
invokestatic java.lang.Math.max:(II)I
anewarray java.lang.Object
putfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 8 1 initialCapacity I
0 8 2 comparator Ljava/util/Comparator<-TE;>;
Signature: (ILjava/util/Comparator<-TE;>;)V
MethodParameters:
Name Flags
initialCapacity
comparator
public void <init>(java.util.Collection<? extends E>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=10, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.util.AbstractQueue.<init>:()V
1: aload 0
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
2: aload 0
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.newCondition:()Ljava/util/concurrent/locks/Condition;
putfield java.util.concurrent.PriorityBlockingQueue.notEmpty:Ljava/util/concurrent/locks/Condition;
3: iconst_1
istore 2
start local 2 4: iconst_1
istore 3
start local 3 5: aload 1
instanceof java.util.SortedSet
ifeq 10
6: aload 1
checkcast java.util.SortedSet
astore 4
start local 4 7: aload 0
aload 4
invokeinterface java.util.SortedSet.comparator:()Ljava/util/Comparator;
putfield java.util.concurrent.PriorityBlockingQueue.comparator:Ljava/util/Comparator;
8: iconst_0
istore 2
end local 4 9: goto 17
10: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.Collection int int
StackMap stack:
aload 1
instanceof java.util.concurrent.PriorityBlockingQueue
ifeq 17
11: aload 1
checkcast java.util.concurrent.PriorityBlockingQueue
12: astore 4
start local 4 13: aload 0
aload 4
invokevirtual java.util.concurrent.PriorityBlockingQueue.comparator:()Ljava/util/Comparator;
putfield java.util.concurrent.PriorityBlockingQueue.comparator:Ljava/util/Comparator;
14: iconst_0
istore 3
15: aload 4
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljava/util/concurrent/PriorityBlockingQueue;
if_acmpne 17
16: iconst_0
istore 2
end local 4 17: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Collection.toArray:()[Ljava/lang/Object;
astore 4
start local 4 18: aload 4
arraylength
istore 5
start local 5 19: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljava/util/ArrayList;
if_acmpeq 21
20: aload 4
iload 5
ldc [Ljava/lang/Object;
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;
astore 4
21: StackMap locals: java.lang.Object[] int
StackMap stack:
iload 3
ifeq 28
iload 5
iconst_1
if_icmpeq 22
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.comparator:Ljava/util/Comparator;
ifnull 28
22: StackMap locals:
StackMap stack:
aload 4
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 27
StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.Collection int int java.lang.Object[] int top int int java.lang.Object[]
StackMap stack:
23: aload 9
iload 7
aaload
astore 6
start local 6 24: aload 6
ifnonnull 26
25: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
end local 6 26: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
27: iload 7
iload 8
if_icmplt 23
28: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.Collection int int java.lang.Object[] int
StackMap stack:
aload 0
aload 4
invokestatic java.util.concurrent.PriorityBlockingQueue.ensureNonEmpty:([Ljava/lang/Object;)[Ljava/lang/Object;
putfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
29: aload 0
iload 5
putfield java.util.concurrent.PriorityBlockingQueue.size:I
30: iload 2
ifeq 32
31: aload 0
invokevirtual java.util.concurrent.PriorityBlockingQueue.heapify:()V
32: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 33 1 c Ljava/util/Collection<+TE;>;
4 33 2 heapify Z
5 33 3 screen Z
7 9 4 ss Ljava/util/SortedSet<+TE;>;
13 17 4 pq Ljava/util/concurrent/PriorityBlockingQueue<+TE;>;
18 33 4 es [Ljava/lang/Object;
19 33 5 n I
24 26 6 e Ljava/lang/Object;
Signature: (Ljava/util/Collection<+TE;>;)V
MethodParameters:
Name Flags
c
private static java.lang.Object[] ensureNonEmpty(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
arraylength
ifle 1
aload 0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
anewarray java.lang.Object
StackMap locals:
StackMap stack: java.lang.Object[]
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 es [Ljava/lang/Object;
MethodParameters:
Name Flags
es
private void tryGrow(java.lang.Object[], int);
descriptor: ([Ljava/lang/Object;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
1: aconst_null
astore 3
start local 3 2: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.allocationSpinLock:I
ifne 15
3: getstatic java.util.concurrent.PriorityBlockingQueue.ALLOCATIONSPINLOCK:Ljava/lang/invoke/VarHandle;
aload 0
iconst_0
iconst_1
invokevirtual java.lang.invoke.VarHandle.compareAndSet:(Ljava/util/concurrent/PriorityBlockingQueue;II)Z
ifeq 15
4: iload 2
bipush 64
if_icmpge 5
iload 2
iconst_2
iadd
goto 6
StackMap locals: java.lang.Object[]
StackMap stack:
5: iload 2
iconst_1
ishr
StackMap locals:
StackMap stack: int
6: istore 4
start local 4 7: iload 2
iconst_1
iload 4
invokestatic jdk.internal.util.ArraysSupport.newLength:(III)I
istore 5
start local 5 8: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
aload 1
if_acmpne 14
9: iload 5
anewarray java.lang.Object
astore 3
end local 5 end local 4 10: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 6
12: aload 0
iconst_0
putfield java.util.concurrent.PriorityBlockingQueue.allocationSpinLock:I
13: aload 6
athrow
14: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield java.util.concurrent.PriorityBlockingQueue.allocationSpinLock:I
15: StackMap locals:
StackMap stack:
aload 3
ifnonnull 17
16: invokestatic java.lang.Thread.yield:()V
17: StackMap locals:
StackMap stack:
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
18: aload 3
ifnull 21
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
aload 1
if_acmpne 21
19: aload 0
aload 3
putfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
20: aload 1
iconst_0
aload 3
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
21: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 22 1 array [Ljava/lang/Object;
0 22 2 oldCap I
2 22 3 newArray [Ljava/lang/Object;
7 10 4 growth I
8 10 5 newCap I
Exception table:
from to target type
4 11 11 any
MethodParameters:
Name Flags
array
oldCap
private E dequeue();
descriptor: ()Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
dup
astore 1
start local 1 1: iconst_0
aaload
dup
astore 2
start local 2 2: ifnull 11
3: aload 1
aload 0
dup
getfield java.util.concurrent.PriorityBlockingQueue.size:I
iconst_1
isub
dup_x1
putfield java.util.concurrent.PriorityBlockingQueue.size:I
dup
istore 3
start local 3 4: aaload
astore 4
start local 4 5: aload 1
iload 3
aconst_null
aastore
6: iload 3
ifle 11
7: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.comparator:Ljava/util/Comparator;
dup
astore 5
start local 5 8: ifnonnull 10
9: iconst_0
aload 4
aload 1
iload 3
invokestatic java.util.concurrent.PriorityBlockingQueue.siftDownComparable:(ILjava/lang/Object;[Ljava/lang/Object;I)V
goto 11
10: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.lang.Object[] java.lang.Object int java.lang.Object java.util.Comparator
StackMap stack:
iconst_0
aload 4
aload 1
iload 3
aload 5
invokestatic java.util.concurrent.PriorityBlockingQueue.siftDownUsingComparator:(ILjava/lang/Object;[Ljava/lang/Object;ILjava/util/Comparator;)V
end local 5 end local 4 end local 3 11: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
1 12 1 es [Ljava/lang/Object;
2 12 2 result TE;
4 11 3 n I
5 11 4 x TE;
8 11 5 cmp Ljava/util/Comparator<-TE;>;
Signature: ()TE;
private static <T> void siftUpComparable(int, T, []);
descriptor: (ILjava/lang/Object;[Ljava/lang/Object;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
checkcast java.lang.Comparable
astore 3
start local 3 1: goto 8
2: StackMap locals: java.lang.Comparable
StackMap stack:
iload 0
iconst_1
isub
iconst_1
iushr
istore 4
start local 4 3: aload 2
iload 4
aaload
astore 5
start local 5 4: aload 3
aload 5
invokeinterface java.lang.Comparable.compareTo:(Ljava/lang/Object;)I
iflt 6
5: goto 9
6: StackMap locals: int java.lang.Object
StackMap stack:
aload 2
iload 0
aload 5
aastore
7: iload 4
istore 0
end local 5 end local 4 8: StackMap locals:
StackMap stack:
iload 0
ifgt 2
9: StackMap locals:
StackMap stack:
aload 2
iload 0
aload 3
aastore
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 k I
0 11 1 x TT;
0 11 2 es [Ljava/lang/Object;
1 11 3 key Ljava/lang/Comparable<-TT;>;
3 8 4 parent I
4 8 5 e Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>(ITT;[Ljava/lang/Object;)V
MethodParameters:
Name Flags
k
x
es
private static <T> void siftUpUsingComparator(int, T, [], java.util.Comparator<? super T>);
descriptor: (ILjava/lang/Object;[Ljava/lang/Object;Ljava/util/Comparator;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: goto 7
1: StackMap locals:
StackMap stack:
iload 0
iconst_1
isub
iconst_1
iushr
istore 4
start local 4 2: aload 2
iload 4
aaload
astore 5
start local 5 3: aload 3
aload 1
aload 5
invokeinterface java.util.Comparator.compare:(Ljava/lang/Object;Ljava/lang/Object;)I
iflt 5
4: goto 8
5: StackMap locals: int java.lang.Object
StackMap stack:
aload 2
iload 0
aload 5
aastore
6: iload 4
istore 0
end local 5 end local 4 7: StackMap locals:
StackMap stack:
iload 0
ifgt 1
8: StackMap locals:
StackMap stack:
aload 2
iload 0
aload 1
aastore
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 k I
0 10 1 x TT;
0 10 2 es [Ljava/lang/Object;
0 10 3 cmp Ljava/util/Comparator<-TT;>;
2 7 4 parent I
3 7 5 e Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>(ITT;[Ljava/lang/Object;Ljava/util/Comparator<-TT;>;)V
MethodParameters:
Name Flags
k
x
es
cmp
private static <T> void siftDownComparable(int, T, [], );
descriptor: (ILjava/lang/Object;[Ljava/lang/Object;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
checkcast java.lang.Comparable
astore 4
start local 4 1: iload 3
iconst_1
iushr
istore 5
start local 5 2: goto 13
3: StackMap locals: java.lang.Comparable int
StackMap stack:
iload 0
iconst_1
ishl
iconst_1
iadd
istore 6
start local 6 4: aload 2
iload 6
aaload
astore 7
start local 7 5: iload 6
iconst_1
iadd
istore 8
start local 8 6: iload 8
iload 3
if_icmpge 9
7: aload 7
checkcast java.lang.Comparable
aload 2
iload 8
aaload
invokeinterface java.lang.Comparable.compareTo:(Ljava/lang/Object;)I
ifle 9
8: aload 2
iload 8
dup
istore 6
aaload
astore 7
9: StackMap locals: int java.lang.Object int
StackMap stack:
aload 4
aload 7
invokeinterface java.lang.Comparable.compareTo:(Ljava/lang/Object;)I
ifgt 11
10: goto 14
11: StackMap locals:
StackMap stack:
aload 2
iload 0
aload 7
aastore
12: iload 6
istore 0
end local 8 end local 7 end local 6 13: StackMap locals:
StackMap stack:
iload 0
iload 5
if_icmplt 3
14: StackMap locals:
StackMap stack:
aload 2
iload 0
aload 4
aastore
15: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 k I
0 16 1 x TT;
0 16 2 es [Ljava/lang/Object;
0 16 3 n I
1 16 4 key Ljava/lang/Comparable<-TT;>;
2 16 5 half I
4 13 6 child I
5 13 7 c Ljava/lang/Object;
6 13 8 right I
Signature: <T:Ljava/lang/Object;>(ITT;[Ljava/lang/Object;I)V
MethodParameters:
Name Flags
k
x
es
n
private static <T> void siftDownUsingComparator(int, T, [], int, java.util.Comparator<? super T>);
descriptor: (ILjava/lang/Object;[Ljava/lang/Object;ILjava/util/Comparator;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 3
iconst_1
iushr
istore 5
start local 5 1: goto 11
2: StackMap locals: int
StackMap stack:
iload 0
iconst_1
ishl
iconst_1
iadd
istore 6
start local 6 3: aload 2
iload 6
aaload
astore 7
start local 7 4: iload 6
iconst_1
iadd
istore 8
start local 8 5: iload 8
iload 3
if_icmpge 7
aload 4
aload 7
aload 2
iload 8
aaload
invokeinterface java.util.Comparator.compare:(Ljava/lang/Object;Ljava/lang/Object;)I
ifle 7
6: aload 2
iload 8
dup
istore 6
aaload
astore 7
7: StackMap locals: int java.lang.Object int
StackMap stack:
aload 4
aload 1
aload 7
invokeinterface java.util.Comparator.compare:(Ljava/lang/Object;Ljava/lang/Object;)I
ifgt 9
8: goto 12
9: StackMap locals:
StackMap stack:
aload 2
iload 0
aload 7
aastore
10: iload 6
istore 0
end local 8 end local 7 end local 6 11: StackMap locals:
StackMap stack:
iload 0
iload 5
if_icmplt 2
12: StackMap locals:
StackMap stack:
aload 2
iload 0
aload 1
aastore
13: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 k I
0 14 1 x TT;
0 14 2 es [Ljava/lang/Object;
0 14 3 n I
0 14 4 cmp Ljava/util/Comparator<-TT;>;
1 14 5 half I
3 11 6 child I
4 11 7 c Ljava/lang/Object;
5 11 8 right I
Signature: <T:Ljava/lang/Object;>(ITT;[Ljava/lang/Object;ILjava/util/Comparator<-TT;>;)V
MethodParameters:
Name Flags
k
x
es
n
cmp
private void heapify();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
astore 1
start local 1 1: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
istore 2
start local 2 2: iload 2
iconst_1
iushr
iconst_1
isub
istore 3
start local 3 3: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.comparator:Ljava/util/Comparator;
dup
astore 4
start local 4 4: ifnonnull 12
5: goto 8
6: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.lang.Object[] int int java.util.Comparator
StackMap stack:
iload 3
aload 1
iload 3
aaload
aload 1
iload 2
invokestatic java.util.concurrent.PriorityBlockingQueue.siftDownComparable:(ILjava/lang/Object;[Ljava/lang/Object;I)V
7: iinc 3 -1
StackMap locals:
StackMap stack:
8: iload 3
ifge 6
9: goto 13
10: StackMap locals:
StackMap stack:
iload 3
aload 1
iload 3
aaload
aload 1
iload 2
aload 4
invokestatic java.util.concurrent.PriorityBlockingQueue.siftDownUsingComparator:(ILjava/lang/Object;[Ljava/lang/Object;ILjava/util/Comparator;)V
11: iinc 3 -1
StackMap locals:
StackMap stack:
12: iload 3
ifge 10
13: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
1 14 1 es [Ljava/lang/Object;
2 14 2 n I
3 14 3 i I
4 14 4 cmp Ljava/util/Comparator<-TE;>;
public boolean add();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.util.concurrent.PriorityBlockingQueue.offer:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 1 1 e TE;
Signature: (TE;)Z
MethodParameters:
Name Flags
e
public boolean offer();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 2
start local 2 3: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
4: goto 6
start local 3 start local 4 start local 5 5: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.lang.Object java.util.concurrent.locks.ReentrantLock int int java.lang.Object[]
StackMap stack:
aload 0
aload 5
iload 4
invokevirtual java.util.concurrent.PriorityBlockingQueue.tryGrow:([Ljava/lang/Object;I)V
end local 5 end local 4 end local 3 6: StackMap locals:
StackMap stack:
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
dup
istore 3
start local 3 7: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
dup
astore 5
start local 5 8: arraylength
dup
istore 4
start local 4 9: if_icmpge 5
10: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.comparator:Ljava/util/Comparator;
dup
astore 6
start local 6 11: ifnonnull 13
12: iload 3
aload 1
aload 5
invokestatic java.util.concurrent.PriorityBlockingQueue.siftUpComparable:(ILjava/lang/Object;[Ljava/lang/Object;)V
goto 14
13: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.lang.Object java.util.concurrent.locks.ReentrantLock int int java.lang.Object[] java.util.Comparator
StackMap stack:
iload 3
aload 1
aload 5
aload 6
invokestatic java.util.concurrent.PriorityBlockingQueue.siftUpUsingComparator:(ILjava/lang/Object;[Ljava/lang/Object;Ljava/util/Comparator;)V
14: StackMap locals:
StackMap stack:
aload 0
iload 3
iconst_1
iadd
putfield java.util.concurrent.PriorityBlockingQueue.size:I
15: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.notEmpty:Ljava/util/concurrent/locks/Condition;
invokeinterface java.util.concurrent.locks.Condition.signal:()V
end local 6 16: goto 20
StackMap locals: java.util.concurrent.PriorityBlockingQueue java.lang.Object java.util.concurrent.locks.ReentrantLock int int java.lang.Object[]
StackMap stack: java.lang.Throwable
17: astore 7
18: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
19: aload 7
athrow
20: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
21: iconst_1
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 22 1 e TE;
3 22 2 lock Ljava/util/concurrent/locks/ReentrantLock;
5 6 3 n I
7 22 3 n I
5 6 4 cap I
9 22 4 cap I
5 6 5 es [Ljava/lang/Object;
8 22 5 es [Ljava/lang/Object;
11 16 6 cmp Ljava/util/Comparator<-TE;>;
Exception table:
from to target type
10 17 17 any
Signature: (TE;)Z
MethodParameters:
Name Flags
e
public void put();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.util.concurrent.PriorityBlockingQueue.offer:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 2 1 e TE;
Signature: (TE;)V
MethodParameters:
Name Flags
e
public boolean offer(E, long, java.util.concurrent.TimeUnit);
descriptor: (Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
aload 1
invokevirtual java.util.concurrent.PriorityBlockingQueue.offer:(Ljava/lang/Object;)Z
ireturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 1 1 e TE;
0 1 2 timeout J
0 1 4 unit Ljava/util/concurrent/TimeUnit;
Signature: (TE;JLjava/util/concurrent/TimeUnit;)Z
MethodParameters:
Name Flags
e
timeout
unit
public E poll();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=4, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 1
start local 1 1: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
2: aload 0
invokevirtual java.util.concurrent.PriorityBlockingQueue.dequeue:()Ljava/lang/Object;
astore 3
3: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
4: aload 3
areturn
5: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.concurrent.locks.ReentrantLock
StackMap stack: java.lang.Throwable
astore 2
6: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
7: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
1 8 1 lock Ljava/util/concurrent/locks/ReentrantLock;
Exception table:
from to target type
2 3 5 any
Signature: ()TE;
public E take();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 1
start local 1 1: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.lockInterruptibly:()V
2: goto 4
start local 2 3: StackMap locals: java.util.concurrent.locks.ReentrantLock java.lang.Object
StackMap stack:
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.notEmpty:Ljava/util/concurrent/locks/Condition;
invokeinterface java.util.concurrent.locks.Condition.await:()V
end local 2 4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.PriorityBlockingQueue.dequeue:()Ljava/lang/Object;
dup
astore 2
start local 2 5: ifnull 3
6: goto 10
end local 2 StackMap locals:
StackMap stack: java.lang.Throwable
7: astore 3
8: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
9: aload 3
athrow
start local 2 10: StackMap locals: java.lang.Object
StackMap stack:
aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
11: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
1 12 1 lock Ljava/util/concurrent/locks/ReentrantLock;
3 4 2 result TE;
5 7 2 result TE;
10 12 2 result TE;
Exception table:
from to target type
2 7 7 any
Exceptions:
throws java.lang.InterruptedException
Signature: ()TE;
public E poll(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 3 0: aload 3
lload 1
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
lstore 4
start local 4 1: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 6
start local 6 2: aload 6
invokevirtual java.util.concurrent.locks.ReentrantLock.lockInterruptibly:()V
3: goto 5
start local 7 4: StackMap locals: long java.util.concurrent.locks.ReentrantLock java.lang.Object
StackMap stack:
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.notEmpty:Ljava/util/concurrent/locks/Condition;
lload 4
invokeinterface java.util.concurrent.locks.Condition.awaitNanos:(J)J
lstore 4
end local 7 5: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.PriorityBlockingQueue.dequeue:()Ljava/lang/Object;
dup
astore 7
start local 7 6: ifnonnull 11
lload 4
lconst_0
lcmp
ifgt 4
7: goto 11
end local 7 StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 8
9: aload 6
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
10: aload 8
athrow
start local 7 11: StackMap locals: java.lang.Object
StackMap stack:
aload 6
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
12: aload 7
areturn
end local 7 end local 6 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 13 1 timeout J
0 13 3 unit Ljava/util/concurrent/TimeUnit;
1 13 4 nanos J
2 13 6 lock Ljava/util/concurrent/locks/ReentrantLock;
4 5 7 result TE;
6 8 7 result TE;
11 13 7 result TE;
Exception table:
from to target type
3 8 8 any
Exceptions:
throws java.lang.InterruptedException
Signature: (JLjava/util/concurrent/TimeUnit;)TE;
MethodParameters:
Name Flags
timeout
unit
public E peek();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 1
start local 1 1: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
2: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
iconst_0
aaload
astore 3
3: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
4: aload 3
areturn
5: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.concurrent.locks.ReentrantLock
StackMap stack: java.lang.Throwable
astore 2
6: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
7: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
1 8 1 lock Ljava/util/concurrent/locks/ReentrantLock;
Exception table:
from to target type
2 3 5 any
Signature: ()TE;
public java.util.Comparator<? super E> comparator();
descriptor: ()Ljava/util/Comparator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.comparator:Ljava/util/Comparator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
Signature: ()Ljava/util/Comparator<-TE;>;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=4, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 1
start local 1 1: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
2: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
istore 3
3: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
4: iload 3
ireturn
5: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.concurrent.locks.ReentrantLock
StackMap stack: java.lang.Throwable
astore 2
6: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
7: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
1 8 1 lock Ljava/util/concurrent/locks/ReentrantLock;
Exception table:
from to target type
2 3 5 any
public int remainingCapacity();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc 2147483647
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
private int indexOf(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnull 9
1: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
istore 4
start local 4 4: goto 8
5: StackMap locals: java.lang.Object[] int int
StackMap stack:
aload 1
aload 2
iload 3
aaload
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 7
6: iload 3
ireturn
7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 4
if_icmplt 5
end local 4 end local 3 end local 2 9: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 10 1 o Ljava/lang/Object;
2 9 2 es [Ljava/lang/Object;
3 9 3 i I
4 9 4 n I
MethodParameters:
Name Flags
o
private void removeAt(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
astore 2
start local 2 1: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
iconst_1
isub
istore 3
start local 3 2: iload 3
iload 1
if_icmpne 4
3: aload 2
iload 1
aconst_null
aastore
goto 14
4: StackMap locals: java.lang.Object[] int
StackMap stack:
aload 2
iload 3
aaload
astore 4
start local 4 5: aload 2
iload 3
aconst_null
aastore
6: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.comparator:Ljava/util/Comparator;
dup
astore 5
start local 5 7: ifnonnull 9
8: iload 1
aload 4
aload 2
iload 3
invokestatic java.util.concurrent.PriorityBlockingQueue.siftDownComparable:(ILjava/lang/Object;[Ljava/lang/Object;I)V
goto 10
9: StackMap locals: java.lang.Object java.util.Comparator
StackMap stack:
iload 1
aload 4
aload 2
iload 3
aload 5
invokestatic java.util.concurrent.PriorityBlockingQueue.siftDownUsingComparator:(ILjava/lang/Object;[Ljava/lang/Object;ILjava/util/Comparator;)V
10: StackMap locals:
StackMap stack:
aload 2
iload 1
aaload
aload 4
if_acmpne 14
11: aload 5
ifnonnull 13
12: iload 1
aload 4
aload 2
invokestatic java.util.concurrent.PriorityBlockingQueue.siftUpComparable:(ILjava/lang/Object;[Ljava/lang/Object;)V
goto 14
13: StackMap locals:
StackMap stack:
iload 1
aload 4
aload 2
aload 5
invokestatic java.util.concurrent.PriorityBlockingQueue.siftUpUsingComparator:(ILjava/lang/Object;[Ljava/lang/Object;Ljava/util/Comparator;)V
end local 5 end local 4 14: StackMap locals:
StackMap stack:
aload 0
iload 3
putfield java.util.concurrent.PriorityBlockingQueue.size:I
15: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 16 1 i I
1 16 2 es [Ljava/lang/Object;
2 16 3 n I
5 14 4 moved TE;
7 14 5 cmp Ljava/util/Comparator<-TE;>;
MethodParameters:
Name Flags
i
public boolean remove(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 2
start local 2 1: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
2: aload 0
aload 1
invokevirtual java.util.concurrent.PriorityBlockingQueue.indexOf:(Ljava/lang/Object;)I
istore 3
start local 3 3: iload 3
iconst_m1
if_icmpne 6
4: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
5: iconst_0
ireturn
6: StackMap locals: java.util.concurrent.locks.ReentrantLock int
StackMap stack:
aload 0
iload 3
invokevirtual java.util.concurrent.PriorityBlockingQueue.removeAt:(I)V
7: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
8: iconst_1
ireturn
end local 3 9: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.lang.Object java.util.concurrent.locks.ReentrantLock
StackMap stack: java.lang.Throwable
astore 4
10: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
11: aload 4
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 12 1 o Ljava/lang/Object;
1 12 2 lock Ljava/util/concurrent/locks/ReentrantLock;
3 9 3 i I
Exception table:
from to target type
2 4 9 any
6 7 9 any
MethodParameters:
Name Flags
o
void removeEq(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 2
start local 2 1: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
2: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
istore 5
start local 5 5: goto 10
6: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.lang.Object java.util.concurrent.locks.ReentrantLock java.lang.Object[] int int
StackMap stack:
aload 1
aload 3
iload 4
aaload
if_acmpne 9
7: aload 0
iload 4
invokevirtual java.util.concurrent.PriorityBlockingQueue.removeAt:(I)V
8: goto 15
9: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
iload 5
if_icmplt 6
end local 5 end local 4 end local 3 11: goto 15
StackMap locals: java.util.concurrent.PriorityBlockingQueue java.lang.Object java.util.concurrent.locks.ReentrantLock
StackMap stack: java.lang.Throwable
12: astore 6
13: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
14: aload 6
athrow
15: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
16: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 17 1 o Ljava/lang/Object;
1 17 2 lock Ljava/util/concurrent/locks/ReentrantLock;
3 11 3 es [Ljava/lang/Object;
4 11 4 i I
5 11 5 n I
Exception table:
from to target type
2 12 12 any
MethodParameters:
Name Flags
o
public boolean contains(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 2
start local 2 1: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
2: aload 0
aload 1
invokevirtual java.util.concurrent.PriorityBlockingQueue.indexOf:(Ljava/lang/Object;)I
iconst_m1
if_icmpeq 3
iconst_1
goto 4
StackMap locals: java.util.concurrent.locks.ReentrantLock
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: istore 4
5: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
6: iload 4
ireturn
7: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
8: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
9: aload 3
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 10 1 o Ljava/lang/Object;
1 10 2 lock Ljava/util/concurrent/locks/ReentrantLock;
Exception table:
from to target type
2 5 7 any
MethodParameters:
Name Flags
o
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.concurrent.Helpers.collectionToString:(Ljava/util/Collection;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
public int drainTo(java.util.Collection<? super E>);
descriptor: (Ljava/util/Collection;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc 2147483647
invokevirtual java.util.concurrent.PriorityBlockingQueue.drainTo:(Ljava/util/Collection;I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 1 1 c Ljava/util/Collection<-TE;>;
Signature: (Ljava/util/Collection<-TE;>;)I
MethodParameters:
Name Flags
c
public int drainTo(java.util.Collection<? super E>, );
descriptor: (Ljava/util/Collection;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
aload 0
if_acmpne 3
2: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
iload 2
ifgt 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 3
start local 3 6: aload 3
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
7: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
iload 2
invokestatic java.lang.Math.min:(II)I
istore 4
start local 4 8: iconst_0
istore 5
start local 5 9: goto 13
10: StackMap locals: java.util.concurrent.locks.ReentrantLock int int
StackMap stack:
aload 1
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
iconst_0
aaload
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
11: aload 0
invokevirtual java.util.concurrent.PriorityBlockingQueue.dequeue:()Ljava/lang/Object;
pop
12: iinc 5 1
StackMap locals:
StackMap stack:
13: iload 5
iload 4
if_icmplt 10
end local 5 14: iload 4
istore 7
15: aload 3
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
16: iload 7
ireturn
end local 4 17: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.Collection int java.util.concurrent.locks.ReentrantLock
StackMap stack: java.lang.Throwable
astore 6
18: aload 3
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
19: aload 6
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 20 1 c Ljava/util/Collection<-TE;>;
0 20 2 maxElements I
6 20 3 lock Ljava/util/concurrent/locks/ReentrantLock;
8 17 4 n I
9 14 5 i I
Exception table:
from to target type
7 15 17 any
Signature: (Ljava/util/Collection<-TE;>;I)I
MethodParameters:
Name Flags
c
maxElements
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 1
start local 1 1: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
2: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
istore 4
start local 4 5: goto 8
6: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.concurrent.locks.ReentrantLock java.lang.Object[] int int
StackMap stack:
aload 2
iload 3
aconst_null
aastore
7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 4
if_icmplt 6
end local 4 end local 3 9: aload 0
iconst_0
putfield java.util.concurrent.PriorityBlockingQueue.size:I
end local 2 10: goto 14
StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.concurrent.locks.ReentrantLock
StackMap stack: java.lang.Throwable
11: astore 5
12: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
13: aload 5
athrow
14: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
15: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
1 16 1 lock Ljava/util/concurrent/locks/ReentrantLock;
3 10 2 es [Ljava/lang/Object;
4 9 3 i I
5 9 4 n I
Exception table:
from to target type
2 11 11 any
public java.lang.Object[] toArray();
descriptor: ()[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 1
start local 1 1: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
2: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
astore 3
3: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
4: aload 3
areturn
5: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.concurrent.locks.ReentrantLock
StackMap stack: java.lang.Throwable
astore 2
6: aload 1
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
7: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
1 8 1 lock Ljava/util/concurrent/locks/ReentrantLock;
Exception table:
from to target type
2 3 5 any
public <T> T[] toArray();
descriptor: ([Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 2
start local 2 1: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
2: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
istore 3
start local 3 3: aload 1
arraylength
iload 3
if_icmpge 7
4: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;
astore 5
5: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
6: aload 5
areturn
7: StackMap locals: java.util.concurrent.locks.ReentrantLock int
StackMap stack:
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
iconst_0
aload 1
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: aload 1
arraylength
iload 3
if_icmple 10
9: aload 1
iload 3
aconst_null
aastore
10: StackMap locals:
StackMap stack:
aload 1
astore 5
11: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
12: aload 5
areturn
end local 3 13: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.lang.Object[] java.util.concurrent.locks.ReentrantLock
StackMap stack: java.lang.Throwable
astore 4
14: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
15: aload 4
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 16 1 a [Ljava/lang/Object;
1 16 2 lock Ljava/util/concurrent/locks/ReentrantLock;
3 13 3 n I
Exception table:
from to target type
2 5 13 any
7 11 13 any
Signature: <T:Ljava/lang/Object;>([TT;)[TT;
MethodParameters:
Name Flags
a
public java.util.Iterator<E> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.util.concurrent.PriorityBlockingQueue$Itr
dup
aload 0
aload 0
invokevirtual java.util.concurrent.PriorityBlockingQueue.toArray:()[Ljava/lang/Object;
invokespecial java.util.concurrent.PriorityBlockingQueue$Itr.<init>:(Ljava/util/concurrent/PriorityBlockingQueue;[Ljava/lang/Object;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
Signature: ()Ljava/util/Iterator<TE;>;
private void writeObject(java.io.ObjectOutputStream);
descriptor: (Ljava/io/ObjectOutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
1: aload 0
new java.util.PriorityQueue
dup
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
iconst_1
invokestatic java.lang.Math.max:(II)I
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.comparator:Ljava/util/Comparator;
invokespecial java.util.PriorityQueue.<init>:(ILjava/util/Comparator;)V
putfield java.util.concurrent.PriorityBlockingQueue.q:Ljava/util/PriorityQueue;
2: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.q:Ljava/util/PriorityQueue;
aload 0
invokevirtual java.util.PriorityQueue.addAll:(Ljava/util/Collection;)Z
pop
3: aload 1
invokevirtual java.io.ObjectOutputStream.defaultWriteObject:()V
4: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
5: astore 2
6: aload 0
aconst_null
putfield java.util.concurrent.PriorityBlockingQueue.q:Ljava/util/PriorityQueue;
7: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
8: aload 2
athrow
9: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield java.util.concurrent.PriorityBlockingQueue.q:Ljava/util/PriorityQueue;
10: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
11: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 12 1 s Ljava/io/ObjectOutputStream;
Exception table:
from to target type
1 5 5 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
private void readObject(java.io.ObjectInputStream);
descriptor: (Ljava/io/ObjectInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectInputStream.defaultReadObject:()V
1: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.q:Ljava/util/PriorityQueue;
invokevirtual java.util.PriorityQueue.size:()I
istore 2
start local 2 2: invokestatic jdk.internal.access.SharedSecrets.getJavaObjectInputStreamAccess:()Ljdk/internal/access/JavaObjectInputStreamAccess;
aload 1
ldc [Ljava/lang/Object;
iload 2
invokeinterface jdk.internal.access.JavaObjectInputStreamAccess.checkArray:(Ljava/io/ObjectInputStream;Ljava/lang/Class;I)V
3: aload 0
iconst_1
iload 2
invokestatic java.lang.Math.max:(II)I
anewarray java.lang.Object
putfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
4: aload 0
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.q:Ljava/util/PriorityQueue;
invokevirtual java.util.PriorityQueue.comparator:()Ljava/util/Comparator;
putfield java.util.concurrent.PriorityBlockingQueue.comparator:Ljava/util/Comparator;
5: aload 0
aload 0
getfield java.util.concurrent.PriorityBlockingQueue.q:Ljava/util/PriorityQueue;
invokevirtual java.util.concurrent.PriorityBlockingQueue.addAll:(Ljava/util/Collection;)Z
pop
end local 2 6: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
7: astore 3
8: aload 0
aconst_null
putfield java.util.concurrent.PriorityBlockingQueue.q:Ljava/util/PriorityQueue;
9: aload 3
athrow
10: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield java.util.concurrent.PriorityBlockingQueue.q:Ljava/util/PriorityQueue;
11: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 12 1 s Ljava/io/ObjectInputStream;
2 6 2 sz I
Exception table:
from to target type
0 7 7 any
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
s
public java.util.Spliterator<E> spliterator();
descriptor: ()Ljava/util/Spliterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.util.concurrent.PriorityBlockingQueue$PBQSpliterator
dup
aload 0
invokespecial java.util.concurrent.PriorityBlockingQueue$PBQSpliterator.<init>:(Ljava/util/concurrent/PriorityBlockingQueue;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
Signature: ()Ljava/util/Spliterator<TE;>;
public boolean removeIf(java.util.function.Predicate<? super E>);
descriptor: (Ljava/util/function/Predicate;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokevirtual java.util.concurrent.PriorityBlockingQueue.bulkRemove:(Ljava/util/function/Predicate;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 2 1 filter Ljava/util/function/Predicate<-TE;>;
Signature: (Ljava/util/function/Predicate<-TE;>;)Z
MethodParameters:
Name Flags
filter
public boolean removeAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokedynamic test(Ljava/util/Collection;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
java/util/concurrent/PriorityBlockingQueue.lambda$0(Ljava/util/Collection;Ljava/lang/Object;)Z (6)
(Ljava/lang/Object;)Z
invokevirtual java.util.concurrent.PriorityBlockingQueue.bulkRemove:(Ljava/util/function/Predicate;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 2 1 c Ljava/util/Collection<*>;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
c
public boolean retainAll(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokedynamic test(Ljava/util/Collection;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
java/util/concurrent/PriorityBlockingQueue.lambda$1(Ljava/util/Collection;Ljava/lang/Object;)Z (6)
(Ljava/lang/Object;)Z
invokevirtual java.util.concurrent.PriorityBlockingQueue.bulkRemove:(Ljava/util/function/Predicate;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 2 1 c Ljava/util/Collection<*>;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
c
private static long[] nBits(int);
descriptor: (I)[J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
iconst_1
isub
bipush 6
ishr
iconst_1
iadd
newarray 11
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 n I
MethodParameters:
Name Flags
n
private static void setBit(long[], int);
descriptor: ([JI)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
bipush 6
ishr
dup2
laload
lconst_1
iload 1
lshl
lor
lastore
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 bits [J
0 2 1 i I
MethodParameters:
Name Flags
bits
i
private static boolean isClear(long[], int);
descriptor: ([JI)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
bipush 6
ishr
laload
lconst_1
iload 1
lshl
land
lconst_0
lcmp
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 bits [J
0 2 1 i I
MethodParameters:
Name Flags
bits
i
private boolean bulkRemove(java.util.function.Predicate<? super E>);
descriptor: (Ljava/util/function/Predicate;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=10, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 2
start local 2 1: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
2: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
astore 3
start local 3 3: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
istore 4
start local 4 4: iconst_0
istore 5
start local 5 5: goto 7
StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.function.Predicate java.util.concurrent.locks.ReentrantLock java.lang.Object[] int int
StackMap stack:
6: iinc 5 1
StackMap locals:
StackMap stack:
7: iload 5
iload 4
if_icmpge 8
aload 1
aload 3
iload 5
aaload
invokeinterface java.util.function.Predicate.test:(Ljava/lang/Object;)Z
ifeq 6
8: StackMap locals:
StackMap stack:
iload 5
iload 4
if_icmplt 11
9: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
iload 5
istore 6
start local 6 12: iload 4
iload 6
isub
invokestatic java.util.concurrent.PriorityBlockingQueue.nBits:(I)[J
astore 7
start local 7 13: aload 7
iconst_0
lconst_1
lastore
14: iload 6
iconst_1
iadd
istore 5
goto 18
15: StackMap locals: int long[]
StackMap stack:
aload 1
aload 3
iload 5
aaload
invokeinterface java.util.function.Predicate.test:(Ljava/lang/Object;)Z
ifeq 17
16: aload 7
iload 5
iload 6
isub
invokestatic java.util.concurrent.PriorityBlockingQueue.setBit:([JI)V
17: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
18: iload 5
iload 4
if_icmplt 15
19: iload 6
istore 8
start local 8 20: iload 6
istore 5
goto 24
21: StackMap locals: int
StackMap stack:
aload 7
iload 5
iload 6
isub
invokestatic java.util.concurrent.PriorityBlockingQueue.isClear:([JI)Z
ifeq 23
22: aload 3
iload 8
iinc 8 1
aload 3
iload 5
aaload
aastore
23: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
24: iload 5
iload 4
if_icmplt 21
25: aload 0
iload 8
dup_x1
putfield java.util.concurrent.PriorityBlockingQueue.size:I
istore 5
goto 28
26: StackMap locals:
StackMap stack:
aload 3
iload 5
aconst_null
aastore
27: iinc 5 1
StackMap locals:
StackMap stack:
28: iload 5
iload 4
if_icmplt 26
29: aload 0
invokevirtual java.util.concurrent.PriorityBlockingQueue.heapify:()V
30: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
31: iconst_1
ireturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 32: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.function.Predicate java.util.concurrent.locks.ReentrantLock
StackMap stack: java.lang.Throwable
astore 9
33: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
34: aload 9
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 35 1 filter Ljava/util/function/Predicate<-TE;>;
1 35 2 lock Ljava/util/concurrent/locks/ReentrantLock;
3 32 3 es [Ljava/lang/Object;
4 32 4 end I
5 32 5 i I
12 32 6 beg I
13 32 7 deathRow [J
20 32 8 w I
Exception table:
from to target type
2 9 32 any
11 30 32 any
Signature: (Ljava/util/function/Predicate<-TE;>;)Z
MethodParameters:
Name Flags
filter
public void forEach(java.util.function.Consumer<? super E>);
descriptor: (Ljava/util/function/Consumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.lock:Ljava/util/concurrent/locks/ReentrantLock;
astore 2
start local 2 2: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
3: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.queue:[Ljava/lang/Object;
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: aload 0
getfield java.util.concurrent.PriorityBlockingQueue.size:I
istore 5
start local 5 6: goto 9
7: StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.function.Consumer java.util.concurrent.locks.ReentrantLock java.lang.Object[] int int
StackMap stack:
aload 1
aload 3
iload 4
aaload
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
8: iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 5
if_icmplt 7
end local 5 end local 4 end local 3 10: goto 14
StackMap locals: java.util.concurrent.PriorityBlockingQueue java.util.function.Consumer java.util.concurrent.locks.ReentrantLock
StackMap stack: java.lang.Throwable
11: astore 6
12: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
13: aload 6
athrow
14: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljava/util/concurrent/PriorityBlockingQueue<TE;>;
0 16 1 action Ljava/util/function/Consumer<-TE;>;
2 16 2 lock Ljava/util/concurrent/locks/ReentrantLock;
4 10 3 es [Ljava/lang/Object;
5 10 4 i I
6 10 5 n I
Exception table:
from to target type
3 11 11 any
Signature: (Ljava/util/function/Consumer<-TE;>;)V
MethodParameters:
Name Flags
action
private static boolean lambda$0(java.util.Collection, java.lang.Object);
descriptor: (Ljava/util/Collection;Ljava/lang/Object;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokeinterface java.util.Collection.contains:(Ljava/lang/Object;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 e TE;
private static boolean lambda$1(java.util.Collection, java.lang.Object);
descriptor: (Ljava/util/Collection;Ljava/lang/Object;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokeinterface java.util.Collection.contains:(Ljava/lang/Object;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 e TE;
}
Signature: <E:Ljava/lang/Object;>Ljava/util/AbstractQueue<TE;>;Ljava/util/concurrent/BlockingQueue<TE;>;Ljava/io/Serializable;
SourceFile: "PriorityBlockingQueue.java"
NestMembers:
java.util.concurrent.PriorityBlockingQueue$Itr java.util.concurrent.PriorityBlockingQueue$PBQSpliterator
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
final Itr = java.util.concurrent.PriorityBlockingQueue$Itr of java.util.concurrent.PriorityBlockingQueue
final PBQSpliterator = java.util.concurrent.PriorityBlockingQueue$PBQSpliterator of java.util.concurrent.PriorityBlockingQueue