class com.lmax.disruptor.SequenceGroups
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.lmax.disruptor.SequenceGroups
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/lmax/disruptor/SequenceGroups;
static <T> void addSequences(T, java.util.concurrent.atomic.AtomicReferenceFieldUpdater<T, com.lmax.disruptor.Sequence[]>, com.lmax.disruptor.Cursored, com.lmax.disruptor.Sequence[]);
descriptor: (Ljava/lang/Object;Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Lcom/lmax/disruptor/Cursored;[Lcom/lmax/disruptor/Sequence;)V
flags: (0x0088) ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=13, args_size=4
start local 0 start local 1 start local 2 start local 3 0: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual java.util.concurrent.atomic.AtomicReferenceFieldUpdater.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.lmax.disruptor.Sequence[]
astore 7
start local 7 1: aload 7
aload 7
arraylength
aload 3
arraylength
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
checkcast com.lmax.disruptor.Sequence[]
astore 6
start local 6 2: aload 2
invokeinterface com.lmax.disruptor.Cursored.getCursor:()J
lstore 4
start local 4 3: aload 7
arraylength
istore 8
start local 8 4: aload 3
dup
astore 12
arraylength
istore 11
iconst_0
istore 10
goto 9
StackMap locals: java.lang.Object java.util.concurrent.atomic.AtomicReferenceFieldUpdater com.lmax.disruptor.Cursored com.lmax.disruptor.Sequence[] long com.lmax.disruptor.Sequence[] com.lmax.disruptor.Sequence[] int top int int com.lmax.disruptor.Sequence[]
StackMap stack:
5: aload 12
iload 10
aaload
astore 9
start local 9 6: aload 9
lload 4
invokevirtual com.lmax.disruptor.Sequence.set:(J)V
7: aload 6
iload 8
iinc 8 1
aload 9
aastore
end local 9 8: iinc 10 1
StackMap locals:
StackMap stack:
9: iload 10
iload 11
if_icmplt 5
end local 8 10: aload 1
aload 0
aload 7
aload 6
invokevirtual java.util.concurrent.atomic.AtomicReferenceFieldUpdater.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 0
11: aload 2
invokeinterface com.lmax.disruptor.Cursored.getCursor:()J
lstore 4
12: aload 3
dup
astore 11
arraylength
istore 10
iconst_0
istore 9
goto 16
StackMap locals: java.lang.Object java.util.concurrent.atomic.AtomicReferenceFieldUpdater com.lmax.disruptor.Cursored com.lmax.disruptor.Sequence[] long com.lmax.disruptor.Sequence[] com.lmax.disruptor.Sequence[] top int int com.lmax.disruptor.Sequence[]
StackMap stack:
13: aload 11
iload 9
aaload
astore 8
start local 8 14: aload 8
lload 4
invokevirtual com.lmax.disruptor.Sequence.set:(J)V
end local 8 15: iinc 9 1
StackMap locals:
StackMap stack:
16: iload 9
iload 10
if_icmplt 13
17: return
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 18 0 holder TT;
0 18 1 updater Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater<TT;[Lcom/lmax/disruptor/Sequence;>;
0 18 2 cursor Lcom/lmax/disruptor/Cursored;
0 18 3 sequencesToAdd [Lcom/lmax/disruptor/Sequence;
3 18 4 cursorSequence J
2 18 6 updatedSequences [Lcom/lmax/disruptor/Sequence;
1 18 7 currentSequences [Lcom/lmax/disruptor/Sequence;
4 10 8 index I
6 8 9 sequence Lcom/lmax/disruptor/Sequence;
14 15 8 sequence Lcom/lmax/disruptor/Sequence;
Signature: <T:Ljava/lang/Object;>(TT;Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater<TT;[Lcom/lmax/disruptor/Sequence;>;Lcom/lmax/disruptor/Cursored;[Lcom/lmax/disruptor/Sequence;)V
MethodParameters:
Name Flags
holder final
updater final
cursor final
sequencesToAdd final
static <T> boolean removeSequence(T, java.util.concurrent.atomic.AtomicReferenceFieldUpdater<T, com.lmax.disruptor.Sequence[]>, com.lmax.disruptor.Sequence);
descriptor: (Ljava/lang/Object;Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Lcom/lmax/disruptor/Sequence;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=10, args_size=3
start local 0 start local 1 start local 2 0: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual java.util.concurrent.atomic.AtomicReferenceFieldUpdater.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.lmax.disruptor.Sequence[]
astore 4
start local 4 1: aload 4
aload 2
invokestatic com.lmax.disruptor.SequenceGroups.countMatching:([Ljava/lang/Object;Ljava/lang/Object;)I
istore 3
start local 3 2: iload 3
ifne 4
3: goto 15
4: StackMap locals: int com.lmax.disruptor.Sequence[]
StackMap stack:
aload 4
arraylength
istore 6
start local 6 5: iload 6
iload 3
isub
anewarray com.lmax.disruptor.Sequence
astore 5
start local 5 6: iconst_0
istore 7
start local 7 7: iconst_0
istore 8
start local 8 8: goto 13
9: StackMap locals: java.lang.Object java.util.concurrent.atomic.AtomicReferenceFieldUpdater com.lmax.disruptor.Sequence int com.lmax.disruptor.Sequence[] com.lmax.disruptor.Sequence[] int int int
StackMap stack:
aload 4
iload 7
aaload
astore 9
start local 9 10: aload 2
aload 9
if_acmpeq 12
11: aload 5
iload 8
iinc 8 1
aload 9
aastore
end local 9 12: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
13: iload 7
iload 6
if_icmplt 9
end local 8 end local 7 end local 6 14: aload 1
aload 0
aload 4
aload 5
invokevirtual java.util.concurrent.atomic.AtomicReferenceFieldUpdater.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 0
end local 5 15: StackMap locals: java.lang.Object java.util.concurrent.atomic.AtomicReferenceFieldUpdater com.lmax.disruptor.Sequence int com.lmax.disruptor.Sequence[]
StackMap stack:
iload 3
ifeq 16
iconst_1
ireturn
StackMap locals:
StackMap stack:
16: iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 holder TT;
0 17 1 sequenceUpdater Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater<TT;[Lcom/lmax/disruptor/Sequence;>;
0 17 2 sequence Lcom/lmax/disruptor/Sequence;
2 17 3 numToRemove I
1 17 4 oldSequences [Lcom/lmax/disruptor/Sequence;
6 15 5 newSequences [Lcom/lmax/disruptor/Sequence;
5 14 6 oldSize I
7 14 7 i I
8 14 8 pos I
10 12 9 testSequence Lcom/lmax/disruptor/Sequence;
Signature: <T:Ljava/lang/Object;>(TT;Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater<TT;[Lcom/lmax/disruptor/Sequence;>;Lcom/lmax/disruptor/Sequence;)Z
MethodParameters:
Name Flags
holder final
sequenceUpdater final
sequence final
private static <T> int countMatching(T[], );
descriptor: ([Ljava/lang/Object;Ljava/lang/Object;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 6
StackMap locals: java.lang.Object[] java.lang.Object int top int int java.lang.Object[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 3
aload 1
if_acmpne 5
4: iinc 2 1
end local 3 5: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
6: iload 4
iload 5
if_icmplt 2
7: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 values [Ljava/lang/Object;
0 8 1 toMatch TT;
1 8 2 numToRemove I
3 5 3 value TT;
Signature: <T:Ljava/lang/Object;>([TT;TT;)I
MethodParameters:
Name Flags
values
toMatch final
}
SourceFile: "SequenceGroups.java"