public class org.graalvm.compiler.core.test.UnsafeVirtualizationTest 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.UnsafeVirtualizationTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
private static final long AF1Offset;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long AF2Offset;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=6, args_size=0
0: ldc Lorg/graalvm/compiler/core/test/UnsafeVirtualizationTest;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.$assertionsDisabled:Z
3: ldc -1
lstore 0
start local 0 4: ldc -1
lstore 2
start local 2 5: ldc Lorg/graalvm/compiler/core/test/UnsafeVirtualizationTest$A;
ldc "f1"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 4
start local 4 6: ldc Lorg/graalvm/compiler/core/test/UnsafeVirtualizationTest$A;
ldc "f2"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 5
start local 5 7: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 4
invokevirtual sun.misc.Unsafe.objectFieldOffset:(Ljava/lang/reflect/Field;)J
lstore 0
8: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 5
invokevirtual sun.misc.Unsafe.objectFieldOffset:(Ljava/lang/reflect/Field;)J
lstore 2
end local 5 end local 4 9: goto 12
StackMap locals: long long
StackMap stack: java.lang.Exception
10: astore 4
start local 4 11: new java.lang.AssertionError
dup
aload 4
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 4 12: StackMap locals:
StackMap stack:
lload 0
putstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
13: lload 2
putstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF2Offset:J
end local 2 end local 0 14: return
LocalVariableTable:
Start End Slot Name Signature
4 14 0 o1 J
5 14 2 o2 J
6 9 4 f1 Ljava/lang/reflect/Field;
7 9 5 f2 Ljava/lang/reflect/Field;
11 12 4 e Ljava/lang/Exception;
Exception table:
from to target type
5 9 10 Class java.lang.NoSuchFieldException
5 9 10 Class java.lang.SecurityException
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/UnsafeVirtualizationTest;
public static int unsafeSnippet1(double);
descriptor: (D)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: new org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A
dup
invokespecial org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A.<init>:()V
astore 2
start local 2 1: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
dload 0
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
2: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF2Offset:J
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
iadd
ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 i1 D
1 3 2 a Lorg/graalvm/compiler/core/test/UnsafeVirtualizationTest$A;
MethodParameters:
Name Flags
i1
public static long unsafeSnippet2a(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A
dup
invokespecial org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A.<init>:()V
astore 1
start local 1 1: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
iload 0
i2d
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
2: aload 1
iload 0
putfield org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A.f1:I
3: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 i1 I
1 4 1 a Lorg/graalvm/compiler/core/test/UnsafeVirtualizationTest$A;
MethodParameters:
Name Flags
i1
public static long unsafeSnippet2b(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A
dup
invokespecial org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A.<init>:()V
astore 1
start local 1 1: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
iload 0
i2d
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
2: aload 1
iload 0
putfield org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A.f2:I
3: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 i1 I
1 4 1 a Lorg/graalvm/compiler/core/test/UnsafeVirtualizationTest$A;
MethodParameters:
Name Flags
i1
public static long unsafeSnippet3a(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A
dup
invokespecial org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A.<init>:()V
astore 1
start local 1 1: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
iload 0
i2d
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
2: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
iload 0
invokevirtual sun.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
3: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 i1 I
1 4 1 a Lorg/graalvm/compiler/core/test/UnsafeVirtualizationTest$A;
MethodParameters:
Name Flags
i1
public static long unsafeSnippet3b(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A
dup
invokespecial org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A.<init>:()V
astore 1
start local 1 1: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
iload 0
i2d
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
2: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF2Offset:J
iload 0
invokevirtual sun.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
3: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 i1 I
1 4 1 a Lorg/graalvm/compiler/core/test/UnsafeVirtualizationTest$A;
MethodParameters:
Name Flags
i1
public static int unsafeSnippet4(double);
descriptor: (D)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: new org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A
dup
invokespecial org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A.<init>:()V
astore 2
start local 2 1: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
dload 0
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
2: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
dload 0
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
3: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF2Offset:J
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
iadd
ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 i1 D
1 4 2 a Lorg/graalvm/compiler/core/test/UnsafeVirtualizationTest$A;
MethodParameters:
Name Flags
i1
public void testUnsafePEA01();
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/UnsafeVirtualizationTest;
RuntimeInvisibleAnnotations:
Test()
public void testUnsafePEA02();
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/UnsafeVirtualizationTest;
RuntimeInvisibleAnnotations:
Test()
public void testUnsafePEA03();
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/UnsafeVirtualizationTest;
RuntimeInvisibleAnnotations:
Test()
public void testUnsafePEA04();
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/UnsafeVirtualizationTest;
RuntimeInvisibleAnnotations:
Test()
public void testPartialEscapeReadElimination(java.lang.String, boolean, java.lang.Object[]);
descriptor: (Ljava/lang/String;Z[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=7, locals=12, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.$assertionsDisabled:Z
ifne 1
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.AF1Offset:J
ldc 8
lrem
lconst_0
lcmp
ifeq 1
new java.lang.AssertionError
dup
ldc "First of the two int-fields must be 8-byte aligned"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.graalvm.compiler.core.test.UnsafeVirtualizationTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 4
start local 4 2: aload 0
aload 1
getstatic org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions.NO:Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
invokevirtual org.graalvm.compiler.core.test.UnsafeVirtualizationTest.parseEager:(Ljava/lang/String;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;)Lorg/graalvm/compiler/nodes/StructuredGraph;
astore 5
start local 5 3: aload 5
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getOptions:()Lorg/graalvm/compiler/options/OptionValues;
astore 6
start local 6 4: aload 0
invokevirtual org.graalvm.compiler.core.test.UnsafeVirtualizationTest.getDefaultHighTierContext:()Lorg/graalvm/compiler/phases/tiers/HighTierContext;
astore 7
start local 7 5: new org.graalvm.compiler.phases.common.CanonicalizerPhase
dup
invokespecial org.graalvm.compiler.phases.common.CanonicalizerPhase.<init>:()V
astore 8
start local 8 6: iload 2
ifeq 8
7: aload 8
aload 5
aload 7
invokevirtual org.graalvm.compiler.phases.common.CanonicalizerPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
8: StackMap locals: org.graalvm.compiler.core.test.UnsafeVirtualizationTest java.lang.String int java.lang.Object[] jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.options.OptionValues org.graalvm.compiler.phases.tiers.PhaseContext org.graalvm.compiler.phases.common.CanonicalizerPhase
StackMap stack:
aload 0
aload 4
aconst_null
aload 3
invokevirtual org.graalvm.compiler.core.test.UnsafeVirtualizationTest.executeExpected:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Object;[Ljava/lang/Object;)Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;
astore 9
start local 9 9: new org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase
dup
iconst_1
iconst_1
aload 8
aconst_null
aload 6
invokespecial org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase.<init>:(ZZLorg/graalvm/compiler/phases/common/CanonicalizerPhase;Lorg/graalvm/compiler/phases/BasePhase;Lorg/graalvm/compiler/options/OptionValues;)V
aload 5
aload 7
invokevirtual org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
10: aload 0
aload 4
aload 5
invokevirtual org.graalvm.compiler.core.test.UnsafeVirtualizationTest.getCode:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Lorg/graalvm/compiler/nodes/StructuredGraph;)Ljdk/vm/ci/code/InstalledCode;
astore 10
start local 10 11: aload 10
aload 3
invokevirtual jdk.vm.ci.code.InstalledCode.executeVarargs:([Ljava/lang/Object;)Ljava/lang/Object;
astore 11
start local 11 12: aload 0
aload 9
new org.graalvm.compiler.core.test.GraalCompilerTest$Result
dup
aload 11
aconst_null
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest$Result.<init>:(Ljava/lang/Object;Ljava/lang/Throwable;)V
invokevirtual org.graalvm.compiler.core.test.UnsafeVirtualizationTest.assertEquals:(Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;)V
end local 11 end local 10 13: goto 16
StackMap locals: org.graalvm.compiler.core.test.UnsafeVirtualizationTest java.lang.String int java.lang.Object[] jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.options.OptionValues org.graalvm.compiler.phases.tiers.PhaseContext org.graalvm.compiler.phases.common.CanonicalizerPhase org.graalvm.compiler.core.test.GraalCompilerTest$Result
StackMap stack: java.lang.Throwable
14: astore 10
start local 10 15: iconst_1
aload 10
invokevirtual java.lang.Throwable.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.assertFalse:(ZLjava/lang/String;[Ljava/lang/Object;)V
end local 10 16: StackMap locals:
StackMap stack:
return
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/graalvm/compiler/core/test/UnsafeVirtualizationTest;
0 17 1 snippet Ljava/lang/String;
0 17 2 canonicalizeBefore Z
0 17 3 args [Ljava/lang/Object;
2 17 4 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
3 17 5 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
4 17 6 options Lorg/graalvm/compiler/options/OptionValues;
5 17 7 context Lorg/graalvm/compiler/phases/tiers/PhaseContext;
6 17 8 canonicalizer Lorg/graalvm/compiler/phases/common/CanonicalizerPhase;
9 17 9 r Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;
11 13 10 code Ljdk/vm/ci/code/InstalledCode;
12 13 11 result Ljava/lang/Object;
15 16 10 e Ljava/lang/Throwable;
Exception table:
from to target type
10 13 14 Class java.lang.Throwable
MethodParameters:
Name Flags
snippet
canonicalizeBefore
args
}
SourceFile: "UnsafeVirtualizationTest.java"
NestMembers:
org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A org.graalvm.compiler.core.test.UnsafeVirtualizationTest$Base
InnerClasses:
public Result = org.graalvm.compiler.core.test.GraalCompilerTest$Result of org.graalvm.compiler.core.test.GraalCompilerTest
public A = org.graalvm.compiler.core.test.UnsafeVirtualizationTest$A of org.graalvm.compiler.core.test.UnsafeVirtualizationTest
public Base = org.graalvm.compiler.core.test.UnsafeVirtualizationTest$Base of org.graalvm.compiler.core.test.UnsafeVirtualizationTest
public final AllowAssumptions = org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions of org.graalvm.compiler.nodes.StructuredGraph