final class com.sun.marlin.ByteArrayCache$Reference
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.marlin.ByteArrayCache$Reference
super_class: java.lang.Object
{
final byte[] initial;
descriptor: [B
flags: (0x0010) ACC_FINAL
private final boolean clean;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.sun.marlin.ByteArrayCache cache;
descriptor: Lcom/sun/marlin/ByteArrayCache;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(com.sun.marlin.ByteArrayCache, int);
descriptor: (Lcom/sun/marlin/ByteArrayCache;I)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.sun.marlin.ByteArrayCache$Reference.cache:Lcom/sun/marlin/ByteArrayCache;
2: aload 0
aload 1
getfield com.sun.marlin.ByteArrayCache.clean:Z
putfield com.sun.marlin.ByteArrayCache$Reference.clean:Z
3: aload 0
iload 2
invokestatic com.sun.marlin.ByteArrayCache.createArray:(I)[B
putfield com.sun.marlin.ByteArrayCache$Reference.initial:[B
4: getstatic com.sun.marlin.ByteArrayCache.DO_STATS:Z
ifeq 6
5: aload 1
getfield com.sun.marlin.ByteArrayCache.stats:Lcom/sun/marlin/ArrayCacheConst$CacheStats;
dup
getfield com.sun.marlin.ArrayCacheConst$CacheStats.totalInitial:J
iload 2
i2l
ladd
putfield com.sun.marlin.ArrayCacheConst$CacheStats.totalInitial:J
6: StackMap locals: com.sun.marlin.ByteArrayCache$Reference com.sun.marlin.ByteArrayCache int
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/marlin/ByteArrayCache$Reference;
0 7 1 cache Lcom/sun/marlin/ByteArrayCache;
0 7 2 initialSize I
MethodParameters:
Name Flags
cache final
initialSize final
byte[] getArray(int);
descriptor: (I)[B
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
getstatic com.sun.marlin.ArrayCacheConst.MAX_ARRAY_SIZE:I
if_icmpgt 2
1: aload 0
getfield com.sun.marlin.ByteArrayCache$Reference.cache:Lcom/sun/marlin/ByteArrayCache;
iload 1
invokevirtual com.sun.marlin.ByteArrayCache.getCacheBucket:(I)Lcom/sun/marlin/ByteArrayCache$Bucket;
invokevirtual com.sun.marlin.ByteArrayCache$Bucket.getArray:()[B
areturn
2: StackMap locals:
StackMap stack:
getstatic com.sun.marlin.ByteArrayCache.DO_STATS:Z
ifeq 4
3: aload 0
getfield com.sun.marlin.ByteArrayCache$Reference.cache:Lcom/sun/marlin/ByteArrayCache;
getfield com.sun.marlin.ByteArrayCache.stats:Lcom/sun/marlin/ArrayCacheConst$CacheStats;
dup
getfield com.sun.marlin.ArrayCacheConst$CacheStats.oversize:I
iconst_1
iadd
putfield com.sun.marlin.ArrayCacheConst$CacheStats.oversize:I
4: StackMap locals:
StackMap stack:
getstatic com.sun.marlin.ByteArrayCache.DO_LOG_OVERSIZE:Z
ifeq 8
5: new java.lang.StringBuilder
dup
aload 0
getfield com.sun.marlin.ByteArrayCache$Reference.clean:Z
invokestatic com.sun.marlin.ByteArrayCache.getLogPrefix:(Z)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "ByteArrayCache: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: ldc "getArray[oversize]: length=\t"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
7: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.marlin.MarlinUtils.logInfo:(Ljava/lang/String;)V
8: StackMap locals:
StackMap stack:
iload 1
invokestatic com.sun.marlin.ByteArrayCache.createArray:(I)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/marlin/ByteArrayCache$Reference;
0 9 1 length I
MethodParameters:
Name Flags
length final
byte[] widenArray(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0000)
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
arraylength
istore 4
start local 4 1: getstatic com.sun.marlin.ByteArrayCache.DO_CHECKS:Z
ifeq 3
iload 4
iload 3
if_icmplt 3
2: aload 1
areturn
3: StackMap locals: int
StackMap stack:
getstatic com.sun.marlin.ByteArrayCache.DO_STATS:Z
ifeq 5
4: aload 0
getfield com.sun.marlin.ByteArrayCache$Reference.cache:Lcom/sun/marlin/ByteArrayCache;
getfield com.sun.marlin.ByteArrayCache.stats:Lcom/sun/marlin/ArrayCacheConst$CacheStats;
dup
getfield com.sun.marlin.ArrayCacheConst$CacheStats.resize:I
iconst_1
iadd
putfield com.sun.marlin.ArrayCacheConst$CacheStats.resize:I
5: StackMap locals:
StackMap stack:
aload 0
iload 2
iload 3
invokestatic com.sun.marlin.ArrayCacheConst.getNewSize:(II)I
invokevirtual com.sun.marlin.ByteArrayCache$Reference.getArray:(I)[B
astore 5
start local 5 6: aload 1
iconst_0
aload 5
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: aload 0
aload 1
iconst_0
iload 2
invokevirtual com.sun.marlin.ByteArrayCache$Reference.putArray:([BII)[B
pop
8: getstatic com.sun.marlin.ByteArrayCache.DO_LOG_WIDEN_ARRAY:Z
ifeq 14
9: new java.lang.StringBuilder
dup
aload 0
getfield com.sun.marlin.ByteArrayCache$Reference.clean:Z
invokestatic com.sun.marlin.ByteArrayCache.getLogPrefix:(Z)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "ByteArrayCache: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: ldc "widenArray["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
11: ldc "]: usedSize=\t"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "\tlength=\t"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
12: ldc "\tneeded length=\t"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
13: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.marlin.MarlinUtils.logInfo:(Ljava/lang/String;)V
14: StackMap locals: byte[]
StackMap stack:
aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/sun/marlin/ByteArrayCache$Reference;
0 15 1 array [B
0 15 2 usedSize I
0 15 3 needSize I
1 15 4 length I
6 15 5 res [B
MethodParameters:
Name Flags
array final
usedSize final
needSize final
byte[] putArray(byte[]);
descriptor: ([B)[B
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual com.sun.marlin.ByteArrayCache$Reference.putArray:([BII)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/marlin/ByteArrayCache$Reference;
0 1 1 array [B
MethodParameters:
Name Flags
array final
byte[] putArray(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
arraylength
getstatic com.sun.marlin.ArrayCacheConst.MAX_ARRAY_SIZE:I
if_icmpgt 5
1: aload 0
getfield com.sun.marlin.ByteArrayCache$Reference.clean:Z
ifeq 3
iload 3
ifeq 3
2: aload 1
iload 2
iload 3
iconst_0
invokestatic com.sun.marlin.ByteArrayCache.fill:([BIIB)V
3: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.sun.marlin.ByteArrayCache$Reference.initial:[B
if_acmpeq 5
4: aload 0
getfield com.sun.marlin.ByteArrayCache$Reference.cache:Lcom/sun/marlin/ByteArrayCache;
aload 1
arraylength
invokevirtual com.sun.marlin.ByteArrayCache.getCacheBucket:(I)Lcom/sun/marlin/ByteArrayCache$Bucket;
aload 1
invokevirtual com.sun.marlin.ByteArrayCache$Bucket.putArray:([B)V
5: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.marlin.ByteArrayCache$Reference.initial:[B
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/marlin/ByteArrayCache$Reference;
0 6 1 array [B
0 6 2 fromIndex I
0 6 3 toIndex I
MethodParameters:
Name Flags
array final
fromIndex final
toIndex final
}
SourceFile: "ByteArrayCache.java"
NestHost: com.sun.marlin.ByteArrayCache
InnerClasses:
final CacheStats = com.sun.marlin.ArrayCacheConst$CacheStats of com.sun.marlin.ArrayCacheConst
final Bucket = com.sun.marlin.ByteArrayCache$Bucket of com.sun.marlin.ByteArrayCache
final Reference = com.sun.marlin.ByteArrayCache$Reference of com.sun.marlin.ByteArrayCache