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 final sun.misc.Unsafe UNSAFE;
descriptor: Lsun/misc/Unsafe;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
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
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: ldc Lsun/misc/Unsafe;
ldc "theUnsafe"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 0
start local 0 1: aload 0
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
2: aload 0
ldc Lsun/misc/Unsafe;
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.misc.Unsafe
putstatic org.graalvm.compiler.core.test.UnsafeReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
end local 0 3: goto 6
StackMap locals:
StackMap stack: java.lang.Exception
4: astore 0
start local 0 5: new java.lang.RuntimeException
dup
ldc "Exception while trying to get Unsafe"
aload 0
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 0 6: StackMap locals:
StackMap stack:
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
7: return
LocalVariableTable:
Start End Slot Name Signature
1 3 0 theUnsafe Ljava/lang/reflect/Field;
5 6 0 e Ljava/lang/Exception;
Exception table:
from to target type
0 3 4 Class java.lang.Exception
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
}
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