final class reactor.util.concurrent.SpscLinkedArrayQueue<T> extends java.util.AbstractQueue<T> implements java.util.function.BiPredicate<T, T>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: reactor.util.concurrent.SpscLinkedArrayQueue
super_class: java.util.AbstractQueue
{
final int mask;
descriptor: I
flags: (0x0010) ACC_FINAL
volatile long producerIndex;
descriptor: J
flags: (0x0040) ACC_VOLATILE
static final java.util.concurrent.atomic.AtomicLongFieldUpdater<reactor.util.concurrent.SpscLinkedArrayQueue> PRODUCER_INDEX;
descriptor: Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicLongFieldUpdater<Lreactor/util/concurrent/SpscLinkedArrayQueue;>;
java.util.concurrent.atomic.AtomicReferenceArray<java.lang.Object> producerArray;
descriptor: Ljava/util/concurrent/atomic/AtomicReferenceArray;
flags: (0x0000)
Signature: Ljava/util/concurrent/atomic/AtomicReferenceArray<Ljava/lang/Object;>;
volatile long consumerIndex;
descriptor: J
flags: (0x0040) ACC_VOLATILE
static final java.util.concurrent.atomic.AtomicLongFieldUpdater<reactor.util.concurrent.SpscLinkedArrayQueue> CONSUMER_INDEX;
descriptor: Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicLongFieldUpdater<Lreactor/util/concurrent/SpscLinkedArrayQueue;>;
java.util.concurrent.atomic.AtomicReferenceArray<java.lang.Object> consumerArray;
descriptor: Ljava/util/concurrent/atomic/AtomicReferenceArray;
flags: (0x0000)
Signature: Ljava/util/concurrent/atomic/AtomicReferenceArray<Ljava/lang/Object;>;
static final java.lang.Object NEXT;
descriptor: Ljava/lang/Object;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lreactor/util/concurrent/SpscLinkedArrayQueue;
1: ldc "producerIndex"
2: invokestatic java.util.concurrent.atomic.AtomicLongFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
3: putstatic reactor.util.concurrent.SpscLinkedArrayQueue.PRODUCER_INDEX:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
4: ldc Lreactor/util/concurrent/SpscLinkedArrayQueue;
5: ldc "consumerIndex"
6: invokestatic java.util.concurrent.atomic.AtomicLongFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
7: putstatic reactor.util.concurrent.SpscLinkedArrayQueue.CONSUMER_INDEX:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
8: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic reactor.util.concurrent.SpscLinkedArrayQueue.NEXT:Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.util.AbstractQueue.<init>:()V
1: bipush 8
iload 1
invokestatic java.lang.Math.max:(II)I
invokestatic reactor.util.concurrent.Queues.ceilingNextPowerOfTwo:(I)I
istore 2
start local 2 2: aload 0
aload 0
new java.util.concurrent.atomic.AtomicReferenceArray
dup
iload 2
iconst_1
iadd
invokespecial java.util.concurrent.atomic.AtomicReferenceArray.<init>:(I)V
dup_x1
putfield reactor.util.concurrent.SpscLinkedArrayQueue.consumerArray:Ljava/util/concurrent/atomic/AtomicReferenceArray;
putfield reactor.util.concurrent.SpscLinkedArrayQueue.producerArray:Ljava/util/concurrent/atomic/AtomicReferenceArray;
3: aload 0
iload 2
iconst_1
isub
putfield reactor.util.concurrent.SpscLinkedArrayQueue.mask:I
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lreactor/util/concurrent/SpscLinkedArrayQueue<TT;>;
0 5 1 linkSize I
2 5 2 c I
MethodParameters:
Name Flags
linkSize
public boolean offer();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, 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 reactor.util.concurrent.SpscLinkedArrayQueue.producerIndex:J
lstore 2
start local 2 2: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.producerArray:Ljava/util/concurrent/atomic/AtomicReferenceArray;
astore 4
start local 4 3: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.mask:I
istore 5
start local 5 4: lload 2
lconst_1
ladd
l2i
iload 5
iand
istore 6
start local 6 5: aload 4
iload 6
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.get:(I)Ljava/lang/Object;
ifnull 14
6: lload 2
l2i
iload 5
iand
istore 6
7: new java.util.concurrent.atomic.AtomicReferenceArray
dup
iload 5
iconst_2
iadd
invokespecial java.util.concurrent.atomic.AtomicReferenceArray.<init>:(I)V
astore 7
start local 7 8: aload 0
aload 7
putfield reactor.util.concurrent.SpscLinkedArrayQueue.producerArray:Ljava/util/concurrent/atomic/AtomicReferenceArray;
9: aload 7
iload 6
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.lazySet:(ILjava/lang/Object;)V
10: aload 4
iload 5
iconst_1
iadd
aload 7
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.lazySet:(ILjava/lang/Object;)V
11: aload 4
iload 6
getstatic reactor.util.concurrent.SpscLinkedArrayQueue.NEXT:Ljava/lang/Object;
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.lazySet:(ILjava/lang/Object;)V
12: getstatic reactor.util.concurrent.SpscLinkedArrayQueue.PRODUCER_INDEX:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
aload 0
lload 2
lconst_1
ladd
invokevirtual java.util.concurrent.atomic.AtomicLongFieldUpdater.lazySet:(Ljava/lang/Object;J)V
end local 7 13: goto 17
14: StackMap locals: reactor.util.concurrent.SpscLinkedArrayQueue java.lang.Object long java.util.concurrent.atomic.AtomicReferenceArray int int
StackMap stack:
lload 2
l2i
iload 5
iand
istore 6
15: aload 4
iload 6
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.lazySet:(ILjava/lang/Object;)V
16: getstatic reactor.util.concurrent.SpscLinkedArrayQueue.PRODUCER_INDEX:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
aload 0
lload 2
lconst_1
ladd
invokevirtual java.util.concurrent.atomic.AtomicLongFieldUpdater.lazySet:(Ljava/lang/Object;J)V
17: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lreactor/util/concurrent/SpscLinkedArrayQueue<TT;>;
0 18 1 e TT;
2 18 2 pi J
3 18 4 a Ljava/util/concurrent/atomic/AtomicReferenceArray<Ljava/lang/Object;>;
4 18 5 m I
5 18 6 offset I
8 13 7 b Ljava/util/concurrent/atomic/AtomicReferenceArray<Ljava/lang/Object;>;
Signature: (TT;)Z
MethodParameters:
Name Flags
e
public boolean test(T, );
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.producerArray:Ljava/util/concurrent/atomic/AtomicReferenceArray;
astore 3
start local 3 1: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.producerIndex:J
lstore 4
start local 4 2: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.mask:I
istore 6
start local 6 3: lload 4
ldc 2
ladd
l2i
iload 6
iand
istore 7
start local 7 4: aload 3
iload 7
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.get:(I)Ljava/lang/Object;
ifnull 15
5: new java.util.concurrent.atomic.AtomicReferenceArray
dup
iload 6
iconst_2
iadd
invokespecial java.util.concurrent.atomic.AtomicReferenceArray.<init>:(I)V
6: astore 8
start local 8 7: aload 0
aload 8
putfield reactor.util.concurrent.SpscLinkedArrayQueue.producerArray:Ljava/util/concurrent/atomic/AtomicReferenceArray;
8: lload 4
l2i
iload 6
iand
istore 7
9: aload 8
iload 7
iconst_1
iadd
aload 2
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.lazySet:(ILjava/lang/Object;)V
10: aload 8
iload 7
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.lazySet:(ILjava/lang/Object;)V
11: aload 3
aload 3
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.length:()I
iconst_1
isub
aload 8
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.lazySet:(ILjava/lang/Object;)V
12: aload 3
iload 7
getstatic reactor.util.concurrent.SpscLinkedArrayQueue.NEXT:Ljava/lang/Object;
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.lazySet:(ILjava/lang/Object;)V
13: getstatic reactor.util.concurrent.SpscLinkedArrayQueue.PRODUCER_INDEX:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
aload 0
lload 4
ldc 2
ladd
invokevirtual java.util.concurrent.atomic.AtomicLongFieldUpdater.lazySet:(Ljava/lang/Object;J)V
end local 8 14: goto 19
15: StackMap locals: reactor.util.concurrent.SpscLinkedArrayQueue java.lang.Object java.lang.Object java.util.concurrent.atomic.AtomicReferenceArray long int int
StackMap stack:
lload 4
l2i
iload 6
iand
istore 7
16: aload 3
iload 7
iconst_1
iadd
aload 2
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.lazySet:(ILjava/lang/Object;)V
17: aload 3
iload 7
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.lazySet:(ILjava/lang/Object;)V
18: getstatic reactor.util.concurrent.SpscLinkedArrayQueue.PRODUCER_INDEX:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
aload 0
lload 4
ldc 2
ladd
invokevirtual java.util.concurrent.atomic.AtomicLongFieldUpdater.lazySet:(Ljava/lang/Object;J)V
19: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 7 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lreactor/util/concurrent/SpscLinkedArrayQueue<TT;>;
0 20 1 first TT;
0 20 2 second TT;
1 20 3 buffer Ljava/util/concurrent/atomic/AtomicReferenceArray<Ljava/lang/Object;>;
2 20 4 p J
3 20 6 m I
4 20 7 pi I
7 14 8 newBuffer Ljava/util/concurrent/atomic/AtomicReferenceArray<Ljava/lang/Object;>;
Signature: (TT;TT;)Z
MethodParameters:
Name Flags
first
second
public T poll();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=1
start local 0 0: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.consumerIndex:J
lstore 1
start local 1 1: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.consumerArray:Ljava/util/concurrent/atomic/AtomicReferenceArray;
astore 3
start local 3 2: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.mask:I
istore 4
start local 4 3: lload 1
l2i
iload 4
iand
istore 5
start local 5 4: aload 3
iload 5
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.get:(I)Ljava/lang/Object;
astore 6
start local 6 5: aload 6
ifnonnull 7
6: aconst_null
areturn
7: StackMap locals: reactor.util.concurrent.SpscLinkedArrayQueue long java.util.concurrent.atomic.AtomicReferenceArray int int java.lang.Object
StackMap stack:
aload 6
getstatic reactor.util.concurrent.SpscLinkedArrayQueue.NEXT:Ljava/lang/Object;
if_acmpne 13
8: aload 3
iload 4
iconst_1
iadd
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.get:(I)Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicReferenceArray
astore 7
start local 7 9: aload 3
iload 4
iconst_1
iadd
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.lazySet:(ILjava/lang/Object;)V
10: aload 7
iload 5
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.get:(I)Ljava/lang/Object;
astore 6
11: aload 7
astore 3
12: aload 0
aload 7
putfield reactor.util.concurrent.SpscLinkedArrayQueue.consumerArray:Ljava/util/concurrent/atomic/AtomicReferenceArray;
end local 7 13: StackMap locals:
StackMap stack:
aload 3
iload 5
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.lazySet:(ILjava/lang/Object;)V
14: getstatic reactor.util.concurrent.SpscLinkedArrayQueue.CONSUMER_INDEX:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
aload 0
lload 1
lconst_1
ladd
invokevirtual java.util.concurrent.atomic.AtomicLongFieldUpdater.lazySet:(Ljava/lang/Object;J)V
15: aload 6
areturn
end local 6 end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lreactor/util/concurrent/SpscLinkedArrayQueue<TT;>;
1 16 1 ci J
2 16 3 a Ljava/util/concurrent/atomic/AtomicReferenceArray<Ljava/lang/Object;>;
3 16 4 m I
4 16 5 offset I
5 16 6 o Ljava/lang/Object;
9 13 7 b Ljava/util/concurrent/atomic/AtomicReferenceArray<Ljava/lang/Object;>;
Signature: ()TT;
RuntimeVisibleAnnotations:
reactor.util.annotation.Nullable()
public T peek();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.consumerIndex:J
lstore 1
start local 1 1: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.consumerArray:Ljava/util/concurrent/atomic/AtomicReferenceArray;
astore 3
start local 3 2: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.mask:I
istore 4
start local 4 3: lload 1
l2i
iload 4
iand
istore 5
start local 5 4: aload 3
iload 5
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.get:(I)Ljava/lang/Object;
astore 6
start local 6 5: aload 6
ifnonnull 7
6: aconst_null
areturn
7: StackMap locals: reactor.util.concurrent.SpscLinkedArrayQueue long java.util.concurrent.atomic.AtomicReferenceArray int int java.lang.Object
StackMap stack:
aload 6
getstatic reactor.util.concurrent.SpscLinkedArrayQueue.NEXT:Ljava/lang/Object;
if_acmpne 10
8: aload 3
iload 4
iconst_1
iadd
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.get:(I)Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicReferenceArray
astore 3
9: aload 3
iload 5
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.get:(I)Ljava/lang/Object;
astore 6
10: StackMap locals:
StackMap stack:
aload 6
areturn
end local 6 end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lreactor/util/concurrent/SpscLinkedArrayQueue<TT;>;
1 11 1 ci J
2 11 3 a Ljava/util/concurrent/atomic/AtomicReferenceArray<Ljava/lang/Object;>;
3 11 4 m I
4 11 5 offset I
5 11 6 o Ljava/lang/Object;
Signature: ()TT;
RuntimeVisibleAnnotations:
reactor.util.annotation.Nullable()
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.producerIndex:J
aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.consumerIndex:J
lcmp
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lreactor/util/concurrent/SpscLinkedArrayQueue<TT;>;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.consumerIndex:J
lstore 1
start local 1 1: StackMap locals: long
StackMap stack:
aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.producerIndex:J
lstore 3
start local 3 2: aload 0
getfield reactor.util.concurrent.SpscLinkedArrayQueue.consumerIndex:J
lstore 5
start local 5 3: lload 1
lload 5
lcmp
ifne 5
4: lload 3
lload 1
lsub
l2i
ireturn
5: StackMap locals: long long
StackMap stack:
lload 5
lstore 1
end local 5 end local 3 6: goto 1
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lreactor/util/concurrent/SpscLinkedArrayQueue<TT;>;
1 7 1 ci J
2 6 3 pi J
3 6 5 ci2 J
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
invokevirtual reactor.util.concurrent.SpscLinkedArrayQueue.poll:()Ljava/lang/Object;
ifnull 1
aload 0
invokevirtual reactor.util.concurrent.SpscLinkedArrayQueue.isEmpty:()Z
ifeq 0
1: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lreactor/util/concurrent/SpscLinkedArrayQueue<TT;>;
public java.util.Iterator<T> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lreactor/util/concurrent/SpscLinkedArrayQueue<TT;>;
Signature: ()Ljava/util/Iterator<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/util/AbstractQueue<TT;>;Ljava/util/function/BiPredicate<TT;TT;>;
SourceFile: "SpscLinkedArrayQueue.java"