public class org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest extends org.graalvm.compiler.replacements.test.MethodSubstitutionTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest
super_class: org.graalvm.compiler.replacements.test.MethodSubstitutionTest
{
static jdk.internal.misc.Unsafe unsafe;
descriptor: Ljdk/internal/misc/Unsafe;
flags: (0x0008) ACC_STATIC
static org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container dummyValue;
descriptor: Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
flags: (0x0008) ACC_STATIC
static org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container newDummyValue;
descriptor: Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
flags: (0x0008) ACC_STATIC
static long objectOffset;
descriptor: J
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
putstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.unsafe:Ljdk/internal/misc/Unsafe;
1: new org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container
dup
invokespecial org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container.<init>:()V
putstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.dummyValue:Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
2: new org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container
dup
invokespecial org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container.<init>:()V
putstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.newDummyValue:Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
3: getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.unsafe:Ljdk/internal/misc/Unsafe;
ldc Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
ldc "objectField"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
invokevirtual jdk.internal.misc.Unsafe.objectFieldOffset:(Ljava/lang/reflect/Field;)J
putstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.objectOffset:J
4: goto 7
StackMap locals:
StackMap stack: java.lang.NoSuchFieldException
5: astore 0
start local 0 6: new java.lang.RuntimeException
dup
aload 0
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 7: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
6 7 0 e Ljava/lang/NoSuchFieldException;
Exception table:
from to target type
3 4 5 Class java.lang.NoSuchFieldException
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.replacements.test.MethodSubstitutionTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest;
public static java.lang.Object unsafeCompareAndExchangeReference();
descriptor: ()Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=0
0: new org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container
dup
invokespecial org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container.<init>:()V
astore 0
start local 0 1: getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.objectOffset:J
getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.dummyValue:Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.newDummyValue:Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
invokevirtual jdk.internal.misc.Unsafe.compareAndExchangeReference:(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 2 0 container Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
public void testCompareAndSet();
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/replacements/jdk12/test/UnsafeObjectReplacementsTest;
RuntimeInvisibleAnnotations:
Test()
public static java.lang.Object unsafeGetAndSetReference();
descriptor: ()Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=0
0: new org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container
dup
invokespecial org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container.<init>:()V
astore 0
start local 0 1: aload 0
aconst_null
putfield org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container.objectField:Ljava/lang/Object;
2: new org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container
dup
invokespecial org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container.<init>:()V
astore 1
start local 1 3: getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.objectOffset:J
aload 1
invokevirtual jdk.internal.misc.Unsafe.getAndSetReference:(Ljava/lang/Object;JLjava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 container Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
3 4 1 other Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
public void testGetAndSet();
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/replacements/jdk12/test/UnsafeObjectReplacementsTest;
RuntimeInvisibleAnnotations:
Test()
public static java.lang.Object unsafeGetPutReference();
descriptor: ()Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: new org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container
dup
invokespecial org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container.<init>:()V
astore 0
start local 0 1: getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.objectOffset:J
ldc "Hello there"
invokevirtual jdk.internal.misc.Unsafe.putReference:(Ljava/lang/Object;JLjava/lang/Object;)V
2: getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.objectOffset:J
invokevirtual jdk.internal.misc.Unsafe.getReference:(Ljava/lang/Object;J)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 container Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
public static java.lang.Object unsafeGetPutReferenceOpaque();
descriptor: ()Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: new org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container
dup
invokespecial org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container.<init>:()V
astore 0
start local 0 1: getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.objectOffset:J
ldc "Hello there"
invokevirtual jdk.internal.misc.Unsafe.putReferenceOpaque:(Ljava/lang/Object;JLjava/lang/Object;)V
2: getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.objectOffset:J
invokevirtual jdk.internal.misc.Unsafe.getReferenceOpaque:(Ljava/lang/Object;J)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 container Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
public static java.lang.Object unsafeGetPutReferenceRA();
descriptor: ()Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: new org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container
dup
invokespecial org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container.<init>:()V
astore 0
start local 0 1: getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.objectOffset:J
ldc "Hello there"
invokevirtual jdk.internal.misc.Unsafe.putReferenceRelease:(Ljava/lang/Object;JLjava/lang/Object;)V
2: getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.objectOffset:J
invokevirtual jdk.internal.misc.Unsafe.getReferenceAcquire:(Ljava/lang/Object;J)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 container Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
public static java.lang.Object unsafeGetPutReferenceVolatile();
descriptor: ()Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: new org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container
dup
invokespecial org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container.<init>:()V
astore 0
start local 0 1: getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.objectOffset:J
ldc "Hello there"
invokevirtual jdk.internal.misc.Unsafe.putReferenceVolatile:(Ljava/lang/Object;JLjava/lang/Object;)V
2: getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getstatic org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest.objectOffset:J
invokevirtual jdk.internal.misc.Unsafe.getReferenceVolatile:(Ljava/lang/Object;J)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 container Lorg/graalvm/compiler/replacements/jdk12/test/UnsafeObjectReplacementsTest$Container;
public void testUnsafeGetPutPlain();
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/replacements/jdk12/test/UnsafeObjectReplacementsTest;
RuntimeInvisibleAnnotations:
Test()
public void testUnsafeGetPutOpaque();
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/replacements/jdk12/test/UnsafeObjectReplacementsTest;
RuntimeInvisibleAnnotations:
Test()
public void testUnsafeGetPutReleaseAcquire();
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/replacements/jdk12/test/UnsafeObjectReplacementsTest;
RuntimeInvisibleAnnotations:
Test()
public void testUnsafeGetPutVolatile();
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/replacements/jdk12/test/UnsafeObjectReplacementsTest;
RuntimeInvisibleAnnotations:
Test()
}
SourceFile: "UnsafeObjectReplacementsTest.java"
NestMembers:
org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container
InnerClasses:
Container = org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest$Container of org.graalvm.compiler.replacements.jdk12.test.UnsafeObjectReplacementsTest
RuntimeVisibleAnnotations:
org.graalvm.compiler.test.AddExports(value = {"java.base/jdk.internal.misc"})