public class org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest extends org.graalvm.compiler.core.test.GraalCompilerTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
public byte unboxByteAndStore(long, byte[]);
descriptor: (J[B)B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 3
iconst_0
baload
istore 4
start local 4 1: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
lload 1
iload 4
invokevirtual sun.misc.Unsafe.putByte:(JB)V
2: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
aconst_null
lload 1
iload 4
invokevirtual sun.misc.Unsafe.putByte:(Ljava/lang/Object;JB)V
3: aload 3
iconst_0
baload
ireturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
0 4 1 memory J
0 4 3 box [B
1 4 4 val B
MethodParameters:
Name Flags
memory
box
public char unboxCharAndStore(long, char[]);
descriptor: (J[C)C
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 3
iconst_0
caload
istore 4
start local 4 1: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
lload 1
iload 4
invokevirtual sun.misc.Unsafe.putChar:(JC)V
2: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
aconst_null
lload 1
iload 4
invokevirtual sun.misc.Unsafe.putChar:(Ljava/lang/Object;JC)V
3: aload 3
iconst_0
caload
ireturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
0 4 1 memory J
0 4 3 box [C
1 4 4 val C
MethodParameters:
Name Flags
memory
box
public int unboxIntAndStore(long, int[]);
descriptor: (J[I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 3
iconst_0
iaload
istore 4
start local 4 1: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
lload 1
iload 4
invokevirtual sun.misc.Unsafe.putInt:(JI)V
2: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
aconst_null
lload 1
iload 4
invokevirtual sun.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
3: aload 3
iconst_0
iaload
ireturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
0 4 1 memory J
0 4 3 box [I
1 4 4 val I
MethodParameters:
Name Flags
memory
box
public long unboxLongAndStore(long, long[]);
descriptor: (J[J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 3 0: aload 3
iconst_0
laload
lstore 4
start local 4 1: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
lload 1
lload 4
invokevirtual sun.misc.Unsafe.putLong:(JJ)V
2: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
aconst_null
lload 1
lload 4
invokevirtual sun.misc.Unsafe.putLong:(Ljava/lang/Object;JJ)V
3: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
lload 1
lload 4
invokevirtual sun.misc.Unsafe.putAddress:(JJ)V
4: aload 3
iconst_0
laload
lreturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
0 5 1 memory J
0 5 3 box [J
1 5 4 val J
MethodParameters:
Name Flags
memory
box
public float unboxFloatAndStore(long, float[]);
descriptor: (J[F)F
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 3
iconst_0
faload
fstore 4
start local 4 1: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
lload 1
fload 4
invokevirtual sun.misc.Unsafe.putFloat:(JF)V
2: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
aconst_null
lload 1
fload 4
invokevirtual sun.misc.Unsafe.putFloat:(Ljava/lang/Object;JF)V
3: aload 3
iconst_0
faload
freturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
0 4 1 memory J
0 4 3 box [F
1 4 4 val F
MethodParameters:
Name Flags
memory
box
public double unboxDoubleAndStore(long, double[]);
descriptor: (J[D)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 3 0: aload 3
iconst_0
daload
dstore 4
start local 4 1: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
lload 1
dload 4
invokevirtual sun.misc.Unsafe.putDouble:(JD)V
2: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
aconst_null
lload 1
dload 4
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
3: aload 3
iconst_0
daload
dreturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
0 4 1 memory J
0 4 3 box [D
1 4 4 val D
MethodParameters:
Name Flags
memory
box
private void assertExactlyOneArrayLoad(jdk.vm.ci.meta.JavaKind);
descriptor: (Ljdk/vm/ci/meta/JavaKind;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tAssert cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
MethodParameters:
Name Flags
elementKind
public void testGet();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
RuntimeInvisibleAnnotations:
Test()
protected long allocBuf();
descriptor: ()J
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
ldc 16
invokevirtual sun.misc.Unsafe.allocateMemory:(J)J
1: lreturn
2: StackMap locals:
StackMap stack: java.lang.OutOfMemoryError
pop
3: lconst_0
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
Exception table:
from to target type
0 1 2 Class java.lang.OutOfMemoryError
}
SourceFile: "OffHeapUnsafeAccessTest.java"