public final class com.lmax.disruptor.util.Util
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.lmax.disruptor.util.Util
super_class: java.lang.Object
{
private static final sun.misc.Unsafe THE_UNSAFE;
descriptor: Lsun/misc/Unsafe;
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: new com.lmax.disruptor.util.Util$1
dup
invokespecial com.lmax.disruptor.util.Util$1.<init>:()V
astore 0
start local 0 1: aload 0
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast sun.misc.Unsafe
putstatic com.lmax.disruptor.util.Util.THE_UNSAFE:Lsun/misc/Unsafe;
end local 0 2: goto 5
3: StackMap locals:
StackMap stack: java.lang.Exception
astore 0
start local 0 4: new java.lang.RuntimeException
dup
ldc "Unable to load unsafe"
aload 0
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 0 5: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 2 0 action Ljava/security/PrivilegedExceptionAction<Lsun/misc/Unsafe;>;
4 5 0 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 3 Class java.lang.Exception
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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/util/Util;
public static int ceilingNextPowerOfTwo(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_1
bipush 32
iload 0
iconst_1
isub
invokestatic java.lang.Integer.numberOfLeadingZeros:(I)I
isub
ishl
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 x I
MethodParameters:
Name Flags
x final
public static long getMinimumSequence(com.lmax.disruptor.Sequence[]);
descriptor: ([Lcom/lmax/disruptor/Sequence;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc 9223372036854775807
invokestatic com.lmax.disruptor.util.Util.getMinimumSequence:([Lcom/lmax/disruptor/Sequence;J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sequences [Lcom/lmax/disruptor/Sequence;
MethodParameters:
Name Flags
sequences final
public static long getMinimumSequence(com.lmax.disruptor.Sequence[], long);
descriptor: ([Lcom/lmax/disruptor/Sequence;J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: iconst_0
istore 3
start local 3 1: aload 0
arraylength
istore 4
start local 4 2: goto 6
3: StackMap locals: int int
StackMap stack:
aload 0
iload 3
aaload
invokevirtual com.lmax.disruptor.Sequence.get:()J
lstore 5
start local 5 4: lload 1
lload 5
invokestatic java.lang.Math.min:(JJ)J
lstore 1
end local 5 5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 3
end local 4 end local 3 7: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 sequences [Lcom/lmax/disruptor/Sequence;
0 8 1 minimum J
1 7 3 i I
2 7 4 n I
4 5 5 value J
MethodParameters:
Name Flags
sequences final
minimum
public static com.lmax.disruptor.Sequence[] getSequencesFor(com.lmax.disruptor.EventProcessor[]);
descriptor: ([Lcom/lmax/disruptor/EventProcessor;)[Lcom/lmax/disruptor/Sequence;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
arraylength
anewarray com.lmax.disruptor.Sequence
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: com.lmax.disruptor.Sequence[] int
StackMap stack:
aload 1
iload 2
aload 0
iload 2
aaload
invokeinterface com.lmax.disruptor.EventProcessor.getSequence:()Lcom/lmax/disruptor/Sequence;
aastore
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 1
arraylength
if_icmplt 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 processors [Lcom/lmax/disruptor/EventProcessor;
1 7 1 sequences [Lcom/lmax/disruptor/Sequence;
2 6 2 i I
MethodParameters:
Name Flags
processors final
public static sun.misc.Unsafe getUnsafe();
descriptor: ()Lsun/misc/Unsafe;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.lmax.disruptor.util.Util.THE_UNSAFE:Lsun/misc/Unsafe;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static int log2(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 3
2: StackMap locals: int
StackMap stack:
iinc 1 1
3: StackMap locals:
StackMap stack:
iload 0
iconst_1
ishr
dup
istore 0
ifne 2
4: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 i I
1 5 1 r I
MethodParameters:
Name Flags
i
}
SourceFile: "Util.java"
NestMembers:
com.lmax.disruptor.util.Util$1
InnerClasses:
com.lmax.disruptor.util.Util$1