final class sun.java2d.marlin.OffHeapArray
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.java2d.marlin.OffHeapArray
super_class: java.lang.Object
{
static final jdk.internal.misc.Unsafe UNSAFE;
descriptor: Ljdk/internal/misc/Unsafe;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final int SIZE_INT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
long address;
descriptor: J
flags: (0x0000)
long length;
descriptor: J
flags: (0x0000)
int used;
descriptor: I
flags: (0x0000)
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
putstatic sun.java2d.marlin.OffHeapArray.UNSAFE:Ljdk/internal/misc/Unsafe;
1: getstatic jdk.internal.misc.Unsafe.ARRAY_INT_INDEX_SCALE:I
putstatic sun.java2d.marlin.OffHeapArray.SIZE_INT:I
2: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.Object, long);
descriptor: (Ljava/lang/Object;J)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic sun.java2d.marlin.OffHeapArray.UNSAFE:Ljdk/internal/misc/Unsafe;
lload 2
invokevirtual jdk.internal.misc.Unsafe.allocateMemory:(J)J
putfield sun.java2d.marlin.OffHeapArray.address:J
2: aload 0
lload 2
putfield sun.java2d.marlin.OffHeapArray.length:J
3: aload 0
iconst_0
putfield sun.java2d.marlin.OffHeapArray.used:I
4: getstatic sun.java2d.marlin.MarlinConst.LOG_UNSAFE_MALLOC:Z
ifeq 9
5: new java.lang.StringBuilder
dup
invokestatic java.lang.System.currentTimeMillis:()J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
6: ldc ": OffHeapArray.allocateMemory = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: lload 2
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " to addr = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.java2d.marlin.OffHeapArray.address:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
8: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.java2d.marlin.MarlinUtils.logInfo:(Ljava/lang/String;)V
9: StackMap locals: sun.java2d.marlin.OffHeapArray java.lang.Object long
StackMap stack:
invokestatic jdk.internal.ref.CleanerFactory.cleaner:()Ljava/lang/ref/Cleaner;
aload 1
aload 0
invokedynamic run(Lsun/java2d/marlin/OffHeapArray;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
sun/java2d/marlin/OffHeapArray.lambda$0()V (7)
()V
invokevirtual java.lang.ref.Cleaner.register:(Ljava/lang/Object;Ljava/lang/Runnable;)Ljava/lang/ref/Cleaner$Cleanable;
pop
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/java2d/marlin/OffHeapArray;
0 11 1 parent Ljava/lang/Object;
0 11 2 len J
MethodParameters:
Name Flags
parent final
len final
void resize(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getstatic sun.java2d.marlin.OffHeapArray.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.java2d.marlin.OffHeapArray.address:J
lload 1
invokevirtual jdk.internal.misc.Unsafe.reallocateMemory:(JJ)J
putfield sun.java2d.marlin.OffHeapArray.address:J
1: aload 0
lload 1
putfield sun.java2d.marlin.OffHeapArray.length:J
2: getstatic sun.java2d.marlin.MarlinConst.LOG_UNSAFE_MALLOC:Z
ifeq 7
3: new java.lang.StringBuilder
dup
invokestatic java.lang.System.currentTimeMillis:()J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: ldc ": OffHeapArray.reallocateMemory = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " to addr = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.java2d.marlin.OffHeapArray.address:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.java2d.marlin.MarlinUtils.logInfo:(Ljava/lang/String;)V
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/java2d/marlin/OffHeapArray;
0 8 1 len J
MethodParameters:
Name Flags
len final
void free();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic sun.java2d.marlin.OffHeapArray.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.java2d.marlin.OffHeapArray.address:J
invokevirtual jdk.internal.misc.Unsafe.freeMemory:(J)V
1: getstatic sun.java2d.marlin.MarlinConst.LOG_UNSAFE_MALLOC:Z
ifeq 7
2: new java.lang.StringBuilder
dup
invokestatic java.lang.System.currentTimeMillis:()J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
3: ldc ": OffHeapArray.freeMemory = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: aload 0
getfield sun.java2d.marlin.OffHeapArray.length:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
5: ldc " at addr = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.java2d.marlin.OffHeapArray.address:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.java2d.marlin.MarlinUtils.logInfo:(Ljava/lang/String;)V
7: StackMap locals:
StackMap stack:
aload 0
lconst_0
putfield sun.java2d.marlin.OffHeapArray.address:J
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/java2d/marlin/OffHeapArray;
void fill(byte);
descriptor: (B)V
flags: (0x0000)
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.java2d.marlin.OffHeapArray.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.java2d.marlin.OffHeapArray.address:J
aload 0
getfield sun.java2d.marlin.OffHeapArray.length:J
iload 1
invokevirtual jdk.internal.misc.Unsafe.setMemory:(JJB)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/java2d/marlin/OffHeapArray;
0 2 1 val B
MethodParameters:
Name Flags
val final
private void lambda$0();
descriptor: ()V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.java2d.marlin.OffHeapArray.free:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/java2d/marlin/OffHeapArray;
}
SourceFile: "OffHeapArray.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Cleanable = java.lang.ref.Cleaner$Cleanable of java.lang.ref.Cleaner