final class sun.java2d.marlin.DoubleArrayCache implements sun.java2d.marlin.MarlinConst
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.java2d.marlin.DoubleArrayCache
super_class: java.lang.Object
{
final boolean clean;
descriptor: Z
flags: (0x0010) ACC_FINAL
private final int bucketCapacity;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.ref.WeakReference<sun.java2d.marlin.DoubleArrayCache$Bucket[]> refBuckets;
descriptor: Ljava/lang/ref/WeakReference;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/lang/ref/WeakReference<[Lsun/java2d/marlin/DoubleArrayCache$Bucket;>;
final sun.java2d.marlin.ArrayCacheConst$CacheStats stats;
descriptor: Lsun/java2d/marlin/ArrayCacheConst$CacheStats;
flags: (0x0010) ACC_FINAL
void <init>(boolean, int);
descriptor: (ZI)V
flags: (0x0000)
Code:
stack=6, 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
aconst_null
putfield sun.java2d.marlin.DoubleArrayCache.refBuckets:Ljava/lang/ref/WeakReference;
2: aload 0
iload 1
putfield sun.java2d.marlin.DoubleArrayCache.clean:Z
3: aload 0
iload 2
putfield sun.java2d.marlin.DoubleArrayCache.bucketCapacity:I
4: aload 0
getstatic sun.java2d.marlin.DoubleArrayCache.DO_STATS:Z
ifeq 6
5: new sun.java2d.marlin.ArrayCacheConst$CacheStats
dup
new java.lang.StringBuilder
dup
iload 1
invokestatic sun.java2d.marlin.DoubleArrayCache.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 "DoubleArrayCache"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.java2d.marlin.ArrayCacheConst$CacheStats.<init>:(Ljava/lang/String;)V
goto 7
StackMap locals: sun.java2d.marlin.DoubleArrayCache int int
StackMap stack: sun.java2d.marlin.DoubleArrayCache
6: aconst_null
7: StackMap locals: sun.java2d.marlin.DoubleArrayCache int int
StackMap stack: sun.java2d.marlin.DoubleArrayCache sun.java2d.marlin.ArrayCacheConst$CacheStats
putfield sun.java2d.marlin.DoubleArrayCache.stats:Lsun/java2d/marlin/ArrayCacheConst$CacheStats;
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/java2d/marlin/DoubleArrayCache;
0 9 1 clean Z
0 9 2 bucketCapacity I
MethodParameters:
Name Flags
clean final
bucketCapacity final
sun.java2d.marlin.DoubleArrayCache$Bucket getCacheBucket(int);
descriptor: (I)Lsun/java2d/marlin/DoubleArrayCache$Bucket;
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iload 1
invokestatic sun.java2d.marlin.ArrayCacheConst.getBucket:(I)I
istore 2
start local 2 1: aload 0
invokevirtual sun.java2d.marlin.DoubleArrayCache.getBuckets:()[Lsun/java2d/marlin/DoubleArrayCache$Bucket;
iload 2
aaload
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/java2d/marlin/DoubleArrayCache;
0 2 1 length I
1 2 2 bucket I
MethodParameters:
Name Flags
length final
private sun.java2d.marlin.DoubleArrayCache$Bucket[] getBuckets();
descriptor: ()[Lsun/java2d/marlin/DoubleArrayCache$Bucket;
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.java2d.marlin.DoubleArrayCache.refBuckets:Ljava/lang/ref/WeakReference;
ifnull 1
aload 0
getfield sun.java2d.marlin.DoubleArrayCache.refBuckets:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast sun.java2d.marlin.DoubleArrayCache$Bucket[]
goto 2
StackMap locals:
StackMap stack:
1: aconst_null
StackMap locals:
StackMap stack: sun.java2d.marlin.DoubleArrayCache$Bucket[]
2: astore 1
start local 1 3: aload 1
ifnonnull 16
4: bipush 8
anewarray sun.java2d.marlin.DoubleArrayCache$Bucket
astore 1
5: iconst_0
istore 2
start local 2 6: goto 14
7: StackMap locals: sun.java2d.marlin.DoubleArrayCache$Bucket[] int
StackMap stack:
aload 1
iload 2
8: new sun.java2d.marlin.DoubleArrayCache$Bucket
dup
aload 0
getfield sun.java2d.marlin.DoubleArrayCache.clean:Z
getstatic sun.java2d.marlin.ArrayCacheConst.ARRAY_SIZES:[I
iload 2
iaload
aload 0
getfield sun.java2d.marlin.DoubleArrayCache.bucketCapacity:I
9: getstatic sun.java2d.marlin.DoubleArrayCache.DO_STATS:Z
ifeq 10
aload 0
getfield sun.java2d.marlin.DoubleArrayCache.stats:Lsun/java2d/marlin/ArrayCacheConst$CacheStats;
getfield sun.java2d.marlin.ArrayCacheConst$CacheStats.bucketStats:[Lsun/java2d/marlin/ArrayCacheConst$BucketStats;
iload 2
aaload
goto 11
StackMap locals: sun.java2d.marlin.DoubleArrayCache sun.java2d.marlin.DoubleArrayCache$Bucket[] int
StackMap stack: sun.java2d.marlin.DoubleArrayCache$Bucket[] int new 8 new 8 int int int
10: aconst_null
StackMap locals: sun.java2d.marlin.DoubleArrayCache sun.java2d.marlin.DoubleArrayCache$Bucket[] int
StackMap stack: sun.java2d.marlin.DoubleArrayCache$Bucket[] int new 8 new 8 int int int sun.java2d.marlin.ArrayCacheConst$BucketStats
11: invokespecial sun.java2d.marlin.DoubleArrayCache$Bucket.<init>:(ZIILsun/java2d/marlin/ArrayCacheConst$BucketStats;)V
12: aastore
13: iinc 2 1
StackMap locals:
StackMap stack:
14: iload 2
bipush 8
if_icmplt 7
end local 2 15: aload 0
new java.lang.ref.WeakReference
dup
aload 1
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
putfield sun.java2d.marlin.DoubleArrayCache.refBuckets:Ljava/lang/ref/WeakReference;
16: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/java2d/marlin/DoubleArrayCache;
3 17 1 buckets [Lsun/java2d/marlin/DoubleArrayCache$Bucket;
6 15 2 i I
sun.java2d.marlin.DoubleArrayCache$Reference createRef(int);
descriptor: (I)Lsun/java2d/marlin/DoubleArrayCache$Reference;
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new sun.java2d.marlin.DoubleArrayCache$Reference
dup
aload 0
iload 1
invokespecial sun.java2d.marlin.DoubleArrayCache$Reference.<init>:(Lsun/java2d/marlin/DoubleArrayCache;I)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/java2d/marlin/DoubleArrayCache;
0 1 1 initialSize I
MethodParameters:
Name Flags
initialSize final
static double[] createArray(int, boolean);
descriptor: (IZ)[D
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
1: iload 0
newarray 7
areturn
2: StackMap locals:
StackMap stack:
getstatic sun.java2d.marlin.OffHeapArray.UNSAFE:Ljdk/internal/misc/Unsafe;
getstatic java.lang.Double.TYPE:Ljava/lang/Class;
iload 0
invokevirtual jdk.internal.misc.Unsafe.allocateUninitializedArray:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast double[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 length I
0 3 1 clean Z
MethodParameters:
Name Flags
length final
clean final
static void fill(double[], int, int, double);
descriptor: ([DIID)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 1
iload 2
dload 3
invokestatic java.util.Arrays.fill:([DIID)V
1: getstatic sun.java2d.marlin.DoubleArrayCache.DO_CHECKS:Z
ifeq 3
2: aload 0
iload 1
iload 2
dload 3
invokestatic sun.java2d.marlin.DoubleArrayCache.check:([DIID)V
3: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 array [D
0 4 1 fromIndex I
0 4 2 toIndex I
0 4 3 value D
MethodParameters:
Name Flags
array final
fromIndex final
toIndex final
value final
static void check(double[], int, int, double);
descriptor: ([DIID)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic sun.java2d.marlin.DoubleArrayCache.DO_CHECKS:Z
ifeq 14
1: iconst_0
istore 5
start local 5 2: goto 13
3: StackMap locals: int
StackMap stack:
aload 0
iload 5
daload
dload 3
dcmpl
ifeq 12
4: new java.lang.StringBuilder
dup
ldc "Invalid value at: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
iload 5
daload
invokevirtual java.lang.StringBuilder.append:(D)Ljava/lang/StringBuilder;
5: ldc " from: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " to: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: aload 0
invokestatic java.util.Arrays.toString:([D)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: new java.lang.Throwable
dup
invokespecial java.lang.Throwable.<init>:()V
9: invokestatic sun.java2d.marlin.MarlinUtils.logException:(Ljava/lang/String;Ljava/lang/Throwable;)V
10: aload 0
dload 3
invokestatic java.util.Arrays.fill:([DD)V
11: return
12: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
13: iload 5
aload 0
arraylength
if_icmplt 3
end local 5 14: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 array [D
0 15 1 fromIndex I
0 15 2 toIndex I
0 15 3 value D
2 14 5 i I
MethodParameters:
Name Flags
array final
fromIndex final
toIndex final
value final
static java.lang.String getLogPrefix(boolean);
descriptor: (Z)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
ifeq 1
ldc "Clean"
goto 2
StackMap locals:
StackMap stack:
1: ldc "Dirty"
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 clean Z
MethodParameters:
Name Flags
clean final
}
SourceFile: "DoubleArrayCache.java"
NestMembers:
sun.java2d.marlin.DoubleArrayCache$Bucket sun.java2d.marlin.DoubleArrayCache$Reference
InnerClasses:
final BucketStats = sun.java2d.marlin.ArrayCacheConst$BucketStats of sun.java2d.marlin.ArrayCacheConst
final CacheStats = sun.java2d.marlin.ArrayCacheConst$CacheStats of sun.java2d.marlin.ArrayCacheConst
final Bucket = sun.java2d.marlin.DoubleArrayCache$Bucket of sun.java2d.marlin.DoubleArrayCache
final Reference = sun.java2d.marlin.DoubleArrayCache$Reference of sun.java2d.marlin.DoubleArrayCache