final class sun.java2d.marlin.ByteArrayCache$Reference
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.java2d.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 sun.java2d.marlin.ByteArrayCache cache;
descriptor: Lsun/java2d/marlin/ByteArrayCache;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(sun.java2d.marlin.ByteArrayCache, int);
descriptor: (Lsun/java2d/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 sun.java2d.marlin.ByteArrayCache$Reference.cache:Lsun/java2d/marlin/ByteArrayCache;
2: aload 0
aload 1
getfield sun.java2d.marlin.ByteArrayCache.clean:Z
putfield sun.java2d.marlin.ByteArrayCache$Reference.clean:Z
3: aload 0
iload 2
aload 0
getfield sun.java2d.marlin.ByteArrayCache$Reference.clean:Z
invokestatic sun.java2d.marlin.ByteArrayCache.createArray:(IZ)[B
putfield sun.java2d.marlin.ByteArrayCache$Reference.initial:[B
4: getstatic sun.java2d.marlin.ByteArrayCache.DO_STATS:Z
ifeq 6
5: aload 1
getfield sun.java2d.marlin.ByteArrayCache.stats:Lsun/java2d/marlin/ArrayCacheConst$CacheStats;
dup
getfield sun.java2d.marlin.ArrayCacheConst$CacheStats.totalInitial:J
iload 2
i2l
ladd
putfield sun.java2d.marlin.ArrayCacheConst$CacheStats.totalInitial:J
6: StackMap locals: sun.java2d.marlin.ByteArrayCache$Reference sun.java2d.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 Lsun/java2d/marlin/ByteArrayCache$Reference;
0 7 1 cache Lsun/java2d/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 sun.java2d.marlin.ArrayCacheConst.MAX_ARRAY_SIZE:I
if_icmpgt 2
1: aload 0
getfield sun.java2d.marlin.ByteArrayCache$Reference.cache:Lsun/java2d/marlin/ByteArrayCache;
iload 1
invokevirtual sun.java2d.marlin.ByteArrayCache.getCacheBucket:(I)Lsun/java2d/marlin/ByteArrayCache$Bucket;
invokevirtual sun.java2d.marlin.ByteArrayCache$Bucket.getArray:()[B
areturn
2: StackMap locals:
StackMap stack:
getstatic sun.java2d.marlin.ByteArrayCache.DO_STATS:Z
ifeq 4
3: aload 0
getfield sun.java2d.marlin.ByteArrayCache$Reference.cache:Lsun/java2d/marlin/ByteArrayCache;
getfield sun.java2d.marlin.ByteArrayCache.stats:Lsun/java2d/marlin/ArrayCacheConst$CacheStats;
dup
getfield sun.java2d.marlin.ArrayCacheConst$CacheStats.oversize:I
iconst_1
iadd
putfield sun.java2d.marlin.ArrayCacheConst$CacheStats.oversize:I
4: StackMap locals:
StackMap stack:
getstatic sun.java2d.marlin.ByteArrayCache.DO_LOG_OVERSIZE:Z
ifeq 8
5: new java.lang.StringBuilder
dup
aload 0
getfield sun.java2d.marlin.ByteArrayCache$Reference.clean:Z
invokestatic sun.java2d.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 sun.java2d.marlin.MarlinUtils.logInfo:(Ljava/lang/String;)V
8: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield sun.java2d.marlin.ByteArrayCache$Reference.clean:Z
invokestatic sun.java2d.marlin.ByteArrayCache.createArray:(IZ)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/java2d/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 sun.java2d.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 sun.java2d.marlin.ByteArrayCache.DO_STATS:Z
ifeq 5
4: aload 0
getfield sun.java2d.marlin.ByteArrayCache$Reference.cache:Lsun/java2d/marlin/ByteArrayCache;
getfield sun.java2d.marlin.ByteArrayCache.stats:Lsun/java2d/marlin/ArrayCacheConst$CacheStats;
dup
getfield sun.java2d.marlin.ArrayCacheConst$CacheStats.resize:I
iconst_1
iadd
putfield sun.java2d.marlin.ArrayCacheConst$CacheStats.resize:I
5: StackMap locals:
StackMap stack:
aload 0
iload 2
iload 3
invokestatic sun.java2d.marlin.ArrayCacheConst.getNewSize:(II)I
invokevirtual sun.java2d.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 sun.java2d.marlin.ByteArrayCache$Reference.putArray:([BII)[B
pop
8: getstatic sun.java2d.marlin.ByteArrayCache.DO_LOG_WIDEN_ARRAY:Z
ifeq 14
9: new java.lang.StringBuilder
dup
aload 0
getfield sun.java2d.marlin.ByteArrayCache$Reference.clean:Z
invokestatic sun.java2d.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 sun.java2d.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 Lsun/java2d/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 sun.java2d.marlin.ByteArrayCache$Reference.putArray:([BII)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/java2d/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 sun.java2d.marlin.ArrayCacheConst.MAX_ARRAY_SIZE:I
if_icmpgt 5
1: aload 0
getfield sun.java2d.marlin.ByteArrayCache$Reference.clean:Z
ifeq 3
iload 3
ifeq 3
2: aload 1
iload 2
iload 3
iconst_0
invokestatic sun.java2d.marlin.ByteArrayCache.fill:([BIIB)V
3: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield sun.java2d.marlin.ByteArrayCache$Reference.initial:[B
if_acmpeq 5
4: aload 0
getfield sun.java2d.marlin.ByteArrayCache$Reference.cache:Lsun/java2d/marlin/ByteArrayCache;
aload 1
arraylength
invokevirtual sun.java2d.marlin.ByteArrayCache.getCacheBucket:(I)Lsun/java2d/marlin/ByteArrayCache$Bucket;
aload 1
invokevirtual sun.java2d.marlin.ByteArrayCache$Bucket.putArray:([B)V
5: StackMap locals:
StackMap stack:
aload 0
getfield sun.java2d.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 Lsun/java2d/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: sun.java2d.marlin.ByteArrayCache
InnerClasses:
final CacheStats = sun.java2d.marlin.ArrayCacheConst$CacheStats of sun.java2d.marlin.ArrayCacheConst
final Bucket = sun.java2d.marlin.ByteArrayCache$Bucket of sun.java2d.marlin.ByteArrayCache
final Reference = sun.java2d.marlin.ByteArrayCache$Reference of sun.java2d.marlin.ByteArrayCache