public class org.apache.cassandra.utils.concurrent.Accumulator<E> implements java.lang.Iterable<E>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.utils.concurrent.Accumulator
super_class: java.lang.Object
{
private volatile int nextIndex;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile int presentCount;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.lang.Object[] values;
descriptor: [Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<org.apache.cassandra.utils.concurrent.Accumulator> nextIndexUpdater;
descriptor: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater<Lorg/apache/cassandra/utils/concurrent/Accumulator;>;
private static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<org.apache.cassandra.utils.concurrent.Accumulator> presentCountUpdater;
descriptor: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater<Lorg/apache/cassandra/utils/concurrent/Accumulator;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/utils/concurrent/Accumulator;
ldc "nextIndex"
invokestatic java.util.concurrent.atomic.AtomicIntegerFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
putstatic org.apache.cassandra.utils.concurrent.Accumulator.nextIndexUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
1: ldc Lorg/apache/cassandra/utils/concurrent/Accumulator;
ldc "presentCount"
invokestatic java.util.concurrent.atomic.AtomicIntegerFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
putstatic org.apache.cassandra.utils.concurrent.Accumulator.presentCountUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
anewarray java.lang.Object
putfield org.apache.cassandra.utils.concurrent.Accumulator.values:[Ljava/lang/Object;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/utils/concurrent/Accumulator<TE;>;
0 3 1 size I
MethodParameters:
Name Flags
size
public void add();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.utils.concurrent.Accumulator.nextIndex:I
istore 2
start local 2 1: iload 2
aload 0
getfield org.apache.cassandra.utils.concurrent.Accumulator.values:[Ljava/lang/Object;
arraylength
if_icmplt 3
2: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
3: StackMap locals: int
StackMap stack:
getstatic org.apache.cassandra.utils.concurrent.Accumulator.nextIndexUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
iload 2
iload 2
iconst_1
iadd
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.compareAndSet:(Ljava/lang/Object;II)Z
ifeq 0
4: aload 0
getfield org.apache.cassandra.utils.concurrent.Accumulator.values:[Ljava/lang/Object;
iload 2
aload 1
aastore
5: iconst_0
istore 3
start local 3 6: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.cassandra.utils.concurrent.Accumulator.presentCount:I
istore 4
start local 4 7: iload 4
iload 2
if_icmpeq 12
iload 4
aload 0
getfield org.apache.cassandra.utils.concurrent.Accumulator.values:[Ljava/lang/Object;
arraylength
if_icmpeq 8
aload 0
getfield org.apache.cassandra.utils.concurrent.Accumulator.values:[Ljava/lang/Object;
iload 4
aaload
ifnonnull 12
8: StackMap locals: int
StackMap stack:
iload 3
ifne 11
iload 4
iload 2
if_icmpge 11
getstatic org.apache.cassandra.utils.concurrent.Accumulator.presentCountUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
iload 4
iload 4
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.compareAndSet:(Ljava/lang/Object;II)Z
ifne 11
9: iconst_1
istore 3
10: goto 6
11: StackMap locals:
StackMap stack:
return
12: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.utils.concurrent.Accumulator.presentCountUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
iload 4
iload 4
iconst_1
iadd
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.compareAndSet:(Ljava/lang/Object;II)Z
pop
13: iconst_1
istore 3
end local 4 14: goto 6
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/cassandra/utils/concurrent/Accumulator<TE;>;
0 15 1 item TE;
1 15 2 insertPos I
6 15 3 volatileWrite Z
7 14 4 cur I
Signature: (TE;)V
MethodParameters:
Name Flags
item
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.utils.concurrent.Accumulator.presentCount:I
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 Lorg/apache/cassandra/utils/concurrent/Accumulator<TE;>;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.utils.concurrent.Accumulator.presentCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/concurrent/Accumulator<TE;>;
public int capacity();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.utils.concurrent.Accumulator.values:[Ljava/lang/Object;
arraylength
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/concurrent/Accumulator<TE;>;
public java.util.Iterator<E> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.apache.cassandra.utils.concurrent.Accumulator$1
dup
aload 0
invokespecial org.apache.cassandra.utils.concurrent.Accumulator$1.<init>:(Lorg/apache/cassandra/utils/concurrent/Accumulator;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/concurrent/Accumulator<TE;>;
Signature: ()Ljava/util/Iterator<TE;>;
public E get();
descriptor: (I)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.apache.cassandra.utils.concurrent.Accumulator.presentCount:I
if_icmplt 2
1: new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.utils.concurrent.Accumulator.values:[Ljava/lang/Object;
iload 1
aaload
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/utils/concurrent/Accumulator<TE;>;
0 3 1 i I
Signature: (I)TE;
MethodParameters:
Name Flags
i
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Ljava/lang/Iterable<TE;>;
SourceFile: "Accumulator.java"
NestMembers:
org.apache.cassandra.utils.concurrent.Accumulator$1
InnerClasses:
org.apache.cassandra.utils.concurrent.Accumulator$1