public class org.graalvm.compiler.core.test.UnsafeReadEliminationTest 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.UnsafeReadEliminationTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
public static long[] Memory;
descriptor: [J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
public static double SideEffectD;
descriptor: D
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
public static double SideEffectL;
descriptor: D
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
private static final long booleanArrayBaseOffset;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long byteArrayBaseOffset;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long intArrayBaseOffset;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long longArrayBaseOffset;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final byte[] FINAL_BYTE_ARRAY;
descriptor: [B
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final boolean[] FINAL_BOOLEAN_ARRAY;
descriptor: [Z
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: iconst_2
newarray 11
dup
iconst_0
lconst_1
lastore
dup
iconst_1
ldc 2
lastore
putstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.Memory:[J
1: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
ldc [Z
invokevirtual sun.misc.Unsafe.arrayBaseOffset:(Ljava/lang/Class;)I
i2l
putstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.booleanArrayBaseOffset:J
2: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
ldc [B
invokevirtual sun.misc.Unsafe.arrayBaseOffset:(Ljava/lang/Class;)I
i2l
putstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.byteArrayBaseOffset:J
3: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
ldc [I
invokevirtual sun.misc.Unsafe.arrayBaseOffset:(Ljava/lang/Class;)I
i2l
putstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.intArrayBaseOffset:J
4: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
ldc [J
invokevirtual sun.misc.Unsafe.arrayBaseOffset:(Ljava/lang/Class;)I
i2l
putstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.longArrayBaseOffset:J
5: bipush 16
newarray 8
putstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BYTE_ARRAY:[B
6: bipush 16
newarray 4
putstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BOOLEAN_ARRAY:[Z
return
LocalVariableTable:
Start End Slot Name Signature
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/UnsafeReadEliminationTest;
public static long test1Snippet(double);
descriptor: (D)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.Memory:[J
astore 2
start local 2 1: dload 0
dconst_0
dcmpl
ifle 4
2: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic sun.misc.Unsafe.ARRAY_LONG_BASE_OFFSET:I
i2l
dload 0
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
3: goto 5
4: StackMap locals: java.lang.Object
StackMap stack:
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic sun.misc.Unsafe.ARRAY_LONG_BASE_OFFSET:I
i2l
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
l2d
putstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.SideEffectL:D
5: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic sun.misc.Unsafe.ARRAY_LONG_BASE_OFFSET:I
i2l
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
lreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 a D
1 6 2 m Ljava/lang/Object;
MethodParameters:
Name Flags
a
public static java.lang.Object test2Snippet(org.graalvm.compiler.core.test.UnsafeReadEliminationTest$A, int);
descriptor: (Lorg/graalvm/compiler/core/test/UnsafeReadEliminationTest$A;I)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: iload 1
ifeq 6
2: aload 0
getfield org.graalvm.compiler.core.test.UnsafeReadEliminationTest$A.o:[[J
astore 3
start local 3 3: aload 3
astore 2
4: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
aload 3
getstatic sun.misc.Unsafe.ARRAY_LONG_BASE_OFFSET:I
i2l
ldc 12.0
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
end local 3 5: goto 9
6: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.graalvm.compiler.core.test.UnsafeReadEliminationTest$A.p:[[J
astore 3
start local 3 7: aload 3
astore 2
8: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
aload 3
getstatic sun.misc.Unsafe.ARRAY_LONG_BASE_OFFSET:I
i2l
ldc 123
invokevirtual sun.misc.Unsafe.putLong:(Ljava/lang/Object;JJ)V
end local 3 9: StackMap locals:
StackMap stack:
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
10: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic sun.misc.Unsafe.ARRAY_LONG_BASE_OFFSET:I
i2l
invokevirtual sun.misc.Unsafe.getDouble:(Ljava/lang/Object;J)D
putstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.SideEffectD:D
11: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 a Lorg/graalvm/compiler/core/test/UnsafeReadEliminationTest$A;
0 12 1 c I
1 12 2 phi Ljava/lang/Object;
3 5 3 r [[J
7 9 3 r [[J
MethodParameters:
Name Flags
a
c
public void test01();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public void test02();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public void test03();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public void test04();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public void testEarlyReadElimination(org.graalvm.compiler.nodes.StructuredGraph, int, int);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tAssert cannot be resolved\n\tAssert cannot be resolved\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/UnsafeReadEliminationTest;
MethodParameters:
Name Flags
graph
reads
writes
public void testPartialEscapeReadElimination(org.graalvm.compiler.nodes.StructuredGraph, int, int);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tAssert cannot be resolved\n\tAssert cannot be resolved\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/UnsafeReadEliminationTest;
MethodParameters:
Name Flags
graph
reads
writes
public static int testWriteIntToByteArraySnippet();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: iconst_4
newarray 8
astore 0
start local 0 1: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.byteArrayBaseOffset:J
ldc 16909060
invokevirtual sun.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
2: aload 0
iconst_0
baload
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 array [B
public void testWriteIntToByteArray();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static byte testWriteSignedExtendedByteToByteArraySnippet(byte);
descriptor: (B)B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: iconst_4
newarray 8
astore 1
start local 1 1: aload 1
iconst_0
iconst_1
bastore
2: aload 1
iconst_1
iconst_2
bastore
3: aload 1
iconst_2
iconst_3
bastore
4: aload 1
iconst_3
iconst_4
bastore
5: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.byteArrayBaseOffset:J
iload 0
invokevirtual sun.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
6: aload 1
iconst_3
baload
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 b B
1 7 1 array [B
MethodParameters:
Name Flags
b
public void testWriteSignedExtendedByteToByteArray();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static int testWriteLongToIntArraySnippet();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=0
0: iconst_2
newarray 10
astore 0
start local 0 1: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.intArrayBaseOffset:J
ldc 72623859790382856
invokevirtual sun.misc.Unsafe.putLong:(Ljava/lang/Object;JJ)V
2: aload 0
iconst_0
iaload
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 array [I
public void testWriteLongToIntArray();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static int testWriteByteToIntArraySnippet();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: iconst_1
newarray 10
astore 0
start local 0 1: aload 0
iconst_0
ldc 16909060
iastore
2: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.intArrayBaseOffset:J
iconst_5
invokevirtual sun.misc.Unsafe.putByte:(Ljava/lang/Object;JB)V
3: aload 0
iconst_0
iaload
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 array [I
public void testWriteByteToIntArray();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static long testWriteIntToLongArraySnippet();
descriptor: ()J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: iconst_1
newarray 11
astore 0
start local 0 1: aload 0
iconst_0
ldc 72623859790382856
lastore
2: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.longArrayBaseOffset:J
ldc 67305985
invokevirtual sun.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
3: aload 0
iconst_0
laload
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 array [J
public void testWriteIntToLongArray();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static float testWriteFloatToIntArraySnippet();
descriptor: ()F
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: iconst_1
newarray 6
astore 0
start local 0 1: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.intArrayBaseOffset:J
ldc 0.5
invokestatic java.lang.Float.floatToRawIntBits:(F)I
invokevirtual sun.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
2: aload 0
iconst_0
faload
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 array [F
public void testWriteFloatToIntArray();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean alignedKill();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BYTE_ARRAY:[B
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.byteArrayBaseOffset:J
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
istore 0
start local 0 1: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BYTE_ARRAY:[B
iconst_0
iconst_1
bastore
2: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BYTE_ARRAY:[B
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.byteArrayBaseOffset:J
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
istore 1
start local 1 3: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BYTE_ARRAY:[B
iconst_0
iconst_0
bastore
4: iload 0
iload 1
if_icmpne 5
iconst_1
ireturn
StackMap locals: int int
StackMap stack:
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 beforeKill I
3 6 1 afterKill I
public void testAlignedKill();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean unalignedKill();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BYTE_ARRAY:[B
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.byteArrayBaseOffset:J
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
istore 0
start local 0 1: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BYTE_ARRAY:[B
iconst_1
iconst_1
bastore
2: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BYTE_ARRAY:[B
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.byteArrayBaseOffset:J
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
istore 1
start local 1 3: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BYTE_ARRAY:[B
iconst_1
iconst_0
bastore
4: iload 0
iload 1
if_icmpne 5
iconst_1
ireturn
StackMap locals: int int
StackMap stack:
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 beforeKill I
3 6 1 afterKill I
public void testUnalignedKill();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean killBooleanAccessToBooleanArrayViaBASTORE();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BOOLEAN_ARRAY:[Z
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.booleanArrayBaseOffset:J
invokevirtual sun.misc.Unsafe.getBoolean:(Ljava/lang/Object;J)Z
istore 0
start local 0 1: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BOOLEAN_ARRAY:[Z
iconst_0
iconst_1
bastore
2: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BOOLEAN_ARRAY:[Z
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.booleanArrayBaseOffset:J
invokevirtual sun.misc.Unsafe.getBoolean:(Ljava/lang/Object;J)Z
istore 1
start local 1 3: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BOOLEAN_ARRAY:[Z
iconst_0
iconst_0
bastore
4: iload 0
iload 1
if_icmpne 5
iconst_1
ireturn
StackMap locals: int int
StackMap stack:
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 beforeKill Z
3 6 1 afterKill Z
public void testKillBooleanAccessToBooleanArrayViaBASTORE();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean killByteAccessToBooleanArrayViaBASTORE();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BOOLEAN_ARRAY:[Z
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.booleanArrayBaseOffset:J
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
istore 0
start local 0 1: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BOOLEAN_ARRAY:[Z
iconst_0
iconst_1
bastore
2: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BOOLEAN_ARRAY:[Z
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.booleanArrayBaseOffset:J
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
istore 1
start local 1 3: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BOOLEAN_ARRAY:[Z
iconst_0
iconst_0
bastore
4: iload 0
iload 1
if_icmpne 5
iconst_1
ireturn
StackMap locals: int int
StackMap stack:
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 beforeKill B
3 6 1 afterKill B
public void testKillByteAccessToBooleanArrayViaBASTORE();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean unsafeWriteToBooleanArray();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BOOLEAN_ARRAY:[Z
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.booleanArrayBaseOffset:J
iconst_2
invokevirtual sun.misc.Unsafe.putByte:(Ljava/lang/Object;JB)V
1: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BOOLEAN_ARRAY:[Z
getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.booleanArrayBaseOffset:J
invokevirtual sun.misc.Unsafe.getBoolean:(Ljava/lang/Object;J)Z
istore 0
start local 0 2: getstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.FINAL_BOOLEAN_ARRAY:[Z
iconst_0
iconst_0
bastore
3: iload 0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
2 4 0 result Z
public void testUnsafeWriteToBooleanArray();
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/UnsafeReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
}
SourceFile: "UnsafeReadEliminationTest.java"
NestMembers:
org.graalvm.compiler.core.test.UnsafeReadEliminationTest$A
InnerClasses:
public A = org.graalvm.compiler.core.test.UnsafeReadEliminationTest$A of org.graalvm.compiler.core.test.UnsafeReadEliminationTest