public final class com.sun.marlin.ArrayCacheConst implements com.sun.marlin.MarlinConst
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.marlin.ArrayCacheConst
super_class: java.lang.Object
{
static final int BUCKETS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 8
static final int MIN_ARRAY_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4096
static final int MAX_ARRAY_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final int THRESHOLD_SMALL_ARRAY_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4194304
static final int THRESHOLD_ARRAY_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final long THRESHOLD_HUGE_ARRAY_SIZE;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final int[] ARRAY_SIZES;
descriptor: [I
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=0
0: ldc Lcom/sun/marlin/ArrayCacheConst;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.sun.marlin.ArrayCacheConst.$assertionsDisabled:Z
3: bipush 8
newarray 10
putstatic com.sun.marlin.ArrayCacheConst.ARRAY_SIZES:[I
4: sipush 4096
istore 0
start local 0 5: iconst_2
istore 1
start local 1 6: iconst_0
istore 2
start local 2 7: goto 14
8: StackMap locals: int int int
StackMap stack:
getstatic com.sun.marlin.ArrayCacheConst.ARRAY_SIZES:[I
iload 2
iload 0
iastore
9: getstatic com.sun.marlin.ArrayCacheConst.DO_TRACE:Z
ifeq 11
10: new java.lang.StringBuilder
dup
ldc "arraySize["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "]: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.marlin.MarlinUtils.logInfo:(Ljava/lang/String;)V
11: StackMap locals:
StackMap stack:
iload 0
ldc 4194304
if_icmplt 13
12: iconst_1
istore 1
13: StackMap locals:
StackMap stack:
iinc 2 1
iload 0
iload 1
ishl
istore 0
StackMap locals:
StackMap stack:
14: iload 2
bipush 8
if_icmplt 8
end local 2 15: iload 0
iload 1
ishr
putstatic com.sun.marlin.ArrayCacheConst.MAX_ARRAY_SIZE:I
16: getstatic com.sun.marlin.ArrayCacheConst.MAX_ARRAY_SIZE:I
ifgt 18
17: new java.lang.IllegalStateException
dup
ldc "Invalid max array size !"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack:
ldc 16777216
putstatic com.sun.marlin.ArrayCacheConst.THRESHOLD_ARRAY_SIZE:I
19: ldc 50331648
putstatic com.sun.marlin.ArrayCacheConst.THRESHOLD_HUGE_ARRAY_SIZE:J
20: getstatic com.sun.marlin.ArrayCacheConst.DO_STATS:Z
ifeq 33
21: ldc "ArrayCache.BUCKETS = 8"
invokestatic com.sun.marlin.MarlinUtils.logInfo:(Ljava/lang/String;)V
22: ldc "ArrayCache.MIN_ARRAY_SIZE = 4096"
invokestatic com.sun.marlin.MarlinUtils.logInfo:(Ljava/lang/String;)V
23: new java.lang.StringBuilder
dup
ldc "ArrayCache.MAX_ARRAY_SIZE = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic com.sun.marlin.ArrayCacheConst.MAX_ARRAY_SIZE:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.marlin.MarlinUtils.logInfo:(Ljava/lang/String;)V
24: new java.lang.StringBuilder
dup
ldc "ArrayCache.ARRAY_SIZES = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
25: getstatic com.sun.marlin.ArrayCacheConst.ARRAY_SIZES:[I
invokestatic java.util.Arrays.toString:([I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
26: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.marlin.MarlinUtils.logInfo:(Ljava/lang/String;)V
27: new java.lang.StringBuilder
dup
ldc "ArrayCache.THRESHOLD_ARRAY_SIZE = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
28: getstatic com.sun.marlin.ArrayCacheConst.THRESHOLD_ARRAY_SIZE:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
29: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.marlin.MarlinUtils.logInfo:(Ljava/lang/String;)V
30: new java.lang.StringBuilder
dup
ldc "ArrayCache.THRESHOLD_HUGE_ARRAY_SIZE = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
31: getstatic com.sun.marlin.ArrayCacheConst.THRESHOLD_HUGE_ARRAY_SIZE:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
32: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.marlin.MarlinUtils.logInfo:(Ljava/lang/String;)V
end local 1 end local 0 33: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
5 33 0 arraySize I
6 33 1 inc_lg I
7 15 2 i I
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/marlin/ArrayCacheConst;
static int getBucket(int);
descriptor: (I)I
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 5
2: StackMap locals: int
StackMap stack:
iload 0
getstatic com.sun.marlin.ArrayCacheConst.ARRAY_SIZES:[I
iload 1
iaload
if_icmpgt 4
3: iload 1
ireturn
4: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
5: iload 1
getstatic com.sun.marlin.ArrayCacheConst.ARRAY_SIZES:[I
arraylength
if_icmplt 2
end local 1 6: iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 length I
1 6 1 i I
MethodParameters:
Name Flags
length final
public static int getNewSize(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: iload 1
ifge 4
1: new java.lang.ArrayIndexOutOfBoundsException
dup
2: ldc "array exceeds maximum capacity !"
3: invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
getstatic com.sun.marlin.ArrayCacheConst.$assertionsDisabled:Z
ifne 5
iload 0
ifge 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
iload 0
istore 2
start local 2 6: iload 2
getstatic com.sun.marlin.ArrayCacheConst.THRESHOLD_ARRAY_SIZE:I
if_icmple 9
7: iload 2
iload 2
iconst_1
ishr
iadd
istore 3
start local 3 8: goto 10
end local 3 9: StackMap locals: int
StackMap stack:
iload 2
iconst_1
ishl
istore 3
start local 3 10: StackMap locals: int
StackMap stack:
iload 3
iload 1
if_icmpge 12
11: iload 1
bipush 12
ishr
iconst_1
iadd
bipush 12
ishl
istore 3
12: StackMap locals:
StackMap stack:
iload 3
ifge 14
13: ldc 2147483647
istore 3
14: StackMap locals:
StackMap stack:
iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 curSize I
0 15 1 needSize I
6 15 2 initial I
8 9 3 size I
10 15 3 size I
MethodParameters:
Name Flags
curSize final
needSize final
public static long getNewLargeSize(long, long);
descriptor: (JJ)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 2 0: lload 2
bipush 31
lshr
lconst_0
lcmp
ifeq 4
1: new java.lang.ArrayIndexOutOfBoundsException
dup
2: ldc "array exceeds maximum capacity !"
3: invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
getstatic com.sun.marlin.ArrayCacheConst.$assertionsDisabled:Z
ifne 5
lload 0
lconst_0
lcmp
ifge 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
lload 0
getstatic com.sun.marlin.ArrayCacheConst.THRESHOLD_HUGE_ARRAY_SIZE:J
lcmp
ifle 8
6: lload 0
lload 0
iconst_2
lshr
ladd
lstore 4
start local 4 7: goto 15
end local 4 StackMap locals:
StackMap stack:
8: lload 0
getstatic com.sun.marlin.ArrayCacheConst.THRESHOLD_ARRAY_SIZE:I
i2l
lcmp
ifle 11
9: lload 0
lload 0
iconst_1
lshr
ladd
lstore 4
start local 4 10: goto 15
end local 4 StackMap locals:
StackMap stack:
11: lload 0
ldc 4194304
lcmp
ifle 14
12: lload 0
iconst_1
lshl
lstore 4
start local 4 13: goto 15
end local 4 14: StackMap locals:
StackMap stack:
lload 0
iconst_2
lshl
lstore 4
start local 4 15: StackMap locals: long
StackMap stack:
lload 4
lload 2
lcmp
ifge 17
16: lload 2
bipush 12
lshr
lconst_1
ladd
bipush 12
lshl
lstore 4
17: StackMap locals:
StackMap stack:
lload 4
ldc 2147483647
lcmp
ifle 19
18: ldc 2147483647
lstore 4
19: StackMap locals:
StackMap stack:
lload 4
lreturn
end local 4 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 curSize J
0 20 2 needSize J
7 8 4 size J
10 11 4 size J
13 14 4 size J
15 20 4 size J
MethodParameters:
Name Flags
curSize final
needSize final
}
SourceFile: "ArrayCacheConst.java"
NestMembers:
com.sun.marlin.ArrayCacheConst$BucketStats com.sun.marlin.ArrayCacheConst$CacheStats
InnerClasses:
final BucketStats = com.sun.marlin.ArrayCacheConst$BucketStats of com.sun.marlin.ArrayCacheConst
final CacheStats = com.sun.marlin.ArrayCacheConst$CacheStats of com.sun.marlin.ArrayCacheConst