public class org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest 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.test.UnsafeSubstitutionsTest
super_class: org.graalvm.compiler.replacements.test.MethodSubstitutionTest
{
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=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/replacements/test/UnsafeSubstitutionsTest;
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.replacements.test.UnsafeSubstitutionsTest.$assertionsDisabled: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.replacements.test.MethodSubstitutionTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/UnsafeSubstitutionsTest;
public void testSubstitution(java.lang.String, java.lang.Class<?>, java.lang.String, java.lang.Class<?>[], , [], []);
descriptor: (Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/Object;[Ljava/lang/Object;[Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=13, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 0: aload 0
aload 1
invokevirtual org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 8
start local 8 1: aload 0
aload 2
aload 3
aload 4
invokevirtual org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.getResolvedJavaMethod:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 9
start local 9 2: aload 0
aload 8
invokevirtual org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.getCode:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Ljdk/vm/ci/code/InstalledCode;
astore 10
start local 10 3: getstatic org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.$assertionsDisabled:Z
ifne 4
aload 10
ifnonnull 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: jdk.vm.ci.meta.ResolvedJavaMethod jdk.vm.ci.meta.ResolvedJavaMethod jdk.vm.ci.code.InstalledCode
StackMap stack:
aload 0
aload 9
aload 5
aload 6
invokevirtual org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.invokeSafe:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 11
start local 11 5: aload 0
aload 8
aconst_null
aload 7
invokevirtual org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.invokeSafe:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 12
start local 12 6: aload 0
aload 11
aload 12
invokevirtual org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.assertDeepEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
7: aload 0
aload 9
aload 5
aload 6
invokevirtual org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.invokeSafe:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 11
8: aload 10
aload 7
invokestatic org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.executeVarargsSafe:(Ljdk/vm/ci/code/InstalledCode;[Ljava/lang/Object;)Ljava/lang/Object;
astore 12
9: aload 0
aload 11
aload 12
invokevirtual org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.assertDeepEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
10: return
end local 12 end local 11 end local 10 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 11 0 this Lorg/graalvm/compiler/replacements/test/UnsafeSubstitutionsTest;
0 11 1 testMethodName Ljava/lang/String;
0 11 2 holder Ljava/lang/Class<*>;
0 11 3 methodName Ljava/lang/String;
0 11 4 parameterTypes [Ljava/lang/Class;
0 11 5 receiver Ljava/lang/Object;
0 11 6 args1 [Ljava/lang/Object;
0 11 7 args2 [Ljava/lang/Object;
1 11 8 testMethod Ljdk/vm/ci/meta/ResolvedJavaMethod;
2 11 9 originalMethod Ljdk/vm/ci/meta/ResolvedJavaMethod;
3 11 10 code Ljdk/vm/ci/code/InstalledCode;
5 11 11 expected Ljava/lang/Object;
6 11 12 actual Ljava/lang/Object;
Signature: (Ljava/lang/String;Ljava/lang/Class<*>;Ljava/lang/String;[Ljava/lang/Class<*>;Ljava/lang/Object;[Ljava/lang/Object;[Ljava/lang/Object;)V
MethodParameters:
Name Flags
testMethodName
holder
methodName
parameterTypes
receiver
args1
args2
static long off(java.lang.Object, java.lang.String);
descriptor: (Ljava/lang/Object;Ljava/lang/String;)J
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=2
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
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
o
name
public void testUnsafeSubstitutions();
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/test/UnsafeSubstitutionsTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
private static long fooOffset(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.UNSAFE:Lsun/misc/Unsafe;
ldc Lorg/graalvm/compiler/replacements/test/UnsafeSubstitutionsTest$Foo;
aload 0
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
invokevirtual sun.misc.Unsafe.objectFieldOffset:(Ljava/lang/reflect/Field;)J
1: lreturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 3: new java.lang.AssertionError
dup
aload 1
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Ljava/lang/String;
3 4 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.NoSuchFieldException
0 1 2 Class java.lang.SecurityException
MethodParameters:
Name Flags
name
public static boolean unsafeCompareAndSwapInt(sun.misc.Unsafe, java.lang.Object, long);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;J)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
iconst_0
iconst_1
invokevirtual sun.misc.Unsafe.compareAndSwapInt:(Ljava/lang/Object;JII)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 unsafe Lsun/misc/Unsafe;
0 1 1 obj Ljava/lang/Object;
0 1 2 offset J
MethodParameters:
Name Flags
unsafe
obj
offset
public static boolean unsafeCompareAndSwapLong(sun.misc.Unsafe, java.lang.Object, long);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;J)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
lconst_0
lconst_1
invokevirtual sun.misc.Unsafe.compareAndSwapLong:(Ljava/lang/Object;JJJ)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 unsafe Lsun/misc/Unsafe;
0 1 1 obj Ljava/lang/Object;
0 1 2 offset J
MethodParameters:
Name Flags
unsafe
obj
offset
public static boolean unsafeCompareAndSwapObject(sun.misc.Unsafe, java.lang.Object, long);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;J)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
aconst_null
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
invokevirtual sun.misc.Unsafe.compareAndSwapObject:(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 unsafe Lsun/misc/Unsafe;
0 1 1 obj Ljava/lang/Object;
0 1 2 offset J
MethodParameters:
Name Flags
unsafe
obj
offset
public static boolean unsafeGetBoolean(sun.misc.Unsafe, java.lang.Object, long);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;J)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getBoolean:(Ljava/lang/Object;J)Z
ifeq 1
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getBooleanVolatile:(Ljava/lang/Object;J)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 unsafe Lsun/misc/Unsafe;
0 2 1 obj Ljava/lang/Object;
0 2 2 offset J
MethodParameters:
Name Flags
unsafe
obj
offset
public static int unsafeGetByte(sun.misc.Unsafe, java.lang.Object, long);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;J)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getByteVolatile:(Ljava/lang/Object;J)B
iadd
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 unsafe Lsun/misc/Unsafe;
0 1 1 obj Ljava/lang/Object;
0 1 2 offset J
MethodParameters:
Name Flags
unsafe
obj
offset
public static int unsafeGetShort(sun.misc.Unsafe, java.lang.Object, long);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;J)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getShort:(Ljava/lang/Object;J)S
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getShortVolatile:(Ljava/lang/Object;J)S
iadd
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 unsafe Lsun/misc/Unsafe;
0 1 1 obj Ljava/lang/Object;
0 1 2 offset J
MethodParameters:
Name Flags
unsafe
obj
offset
public static int unsafeGetChar(sun.misc.Unsafe, java.lang.Object, long);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;J)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getCharVolatile:(Ljava/lang/Object;J)C
iadd
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 unsafe Lsun/misc/Unsafe;
0 1 1 obj Ljava/lang/Object;
0 1 2 offset J
MethodParameters:
Name Flags
unsafe
obj
offset
public static int unsafeGetInt(sun.misc.Unsafe, java.lang.Object, long);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;J)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getIntVolatile:(Ljava/lang/Object;J)I
iadd
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 unsafe Lsun/misc/Unsafe;
0 1 1 obj Ljava/lang/Object;
0 1 2 offset J
MethodParameters:
Name Flags
unsafe
obj
offset
public static long unsafeGetLong(sun.misc.Unsafe, java.lang.Object, long);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getLongVolatile:(Ljava/lang/Object;J)J
ladd
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 unsafe Lsun/misc/Unsafe;
0 1 1 obj Ljava/lang/Object;
0 1 2 offset J
MethodParameters:
Name Flags
unsafe
obj
offset
public static float unsafeGetFloat(sun.misc.Unsafe, java.lang.Object, long);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;J)F
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getFloat:(Ljava/lang/Object;J)F
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getFloatVolatile:(Ljava/lang/Object;J)F
fadd
freturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 unsafe Lsun/misc/Unsafe;
0 1 1 obj Ljava/lang/Object;
0 1 2 offset J
MethodParameters:
Name Flags
unsafe
obj
offset
public static double unsafeGetDouble(sun.misc.Unsafe, java.lang.Object, long);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;J)D
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getDouble:(Ljava/lang/Object;J)D
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getDoubleVolatile:(Ljava/lang/Object;J)D
dadd
dreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 unsafe Lsun/misc/Unsafe;
0 1 1 obj Ljava/lang/Object;
0 1 2 offset J
MethodParameters:
Name Flags
unsafe
obj
offset
public static boolean unsafeGetObject(sun.misc.Unsafe, java.lang.Object, long);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;J)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getObject:(Ljava/lang/Object;J)Ljava/lang/Object;
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getObjectVolatile:(Ljava/lang/Object;J)Ljava/lang/Object;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 unsafe Lsun/misc/Unsafe;
0 2 1 obj Ljava/lang/Object;
0 2 2 offset J
MethodParameters:
Name Flags
unsafe
obj
offset
public static int unsafePutBoolean(sun.misc.Unsafe, java.lang.Object, long, boolean);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;JZ)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: iconst_1
istore 5
start local 5 1: aload 0
aload 1
lload 2
iload 4
invokevirtual sun.misc.Unsafe.putBoolean:(Ljava/lang/Object;JZ)V
2: iload 5
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getBoolean:(Ljava/lang/Object;J)Z
ifeq 3
iconst_3
goto 4
StackMap locals: sun.misc.Unsafe java.lang.Object long int int
StackMap stack: int
3: iconst_5
StackMap locals: sun.misc.Unsafe java.lang.Object long int int
StackMap stack: int int
4: iadd
istore 5
5: aload 0
aload 1
lload 2
iload 4
invokevirtual sun.misc.Unsafe.putBooleanVolatile:(Ljava/lang/Object;JZ)V
6: iload 5
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getBoolean:(Ljava/lang/Object;J)Z
ifeq 7
bipush 7
goto 8
StackMap locals:
StackMap stack: int
7: bipush 11
StackMap locals: sun.misc.Unsafe java.lang.Object long int int
StackMap stack: int int
8: iadd
istore 5
9: iload 5
ireturn
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 unsafe Lsun/misc/Unsafe;
0 10 1 obj Ljava/lang/Object;
0 10 2 offset J
0 10 4 value Z
1 10 5 res I
MethodParameters:
Name Flags
unsafe
obj
offset
value
public static int unsafePutByte(sun.misc.Unsafe, java.lang.Object, long, byte);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;JB)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: iconst_1
istore 5
start local 5 1: aload 0
aload 1
lload 2
iload 4
iconst_1
iadd
i2b
invokevirtual sun.misc.Unsafe.putByte:(Ljava/lang/Object;JB)V
2: iload 5
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
iadd
istore 5
3: aload 0
aload 1
lload 2
iload 4
iconst_2
iadd
i2b
invokevirtual sun.misc.Unsafe.putByteVolatile:(Ljava/lang/Object;JB)V
4: iload 5
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
iadd
istore 5
5: iload 5
ireturn
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 unsafe Lsun/misc/Unsafe;
0 6 1 obj Ljava/lang/Object;
0 6 2 offset J
0 6 4 value B
1 6 5 res I
MethodParameters:
Name Flags
unsafe
obj
offset
value
public static int unsafePutShort(sun.misc.Unsafe, java.lang.Object, long, short);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;JS)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: iconst_1
istore 5
start local 5 1: aload 0
aload 1
lload 2
iload 4
iconst_1
iadd
i2s
invokevirtual sun.misc.Unsafe.putShort:(Ljava/lang/Object;JS)V
2: iload 5
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getShort:(Ljava/lang/Object;J)S
iadd
istore 5
3: aload 0
aload 1
lload 2
iload 4
iconst_2
iadd
i2s
invokevirtual sun.misc.Unsafe.putShortVolatile:(Ljava/lang/Object;JS)V
4: iload 5
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getShort:(Ljava/lang/Object;J)S
iadd
istore 5
5: iload 5
ireturn
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 unsafe Lsun/misc/Unsafe;
0 6 1 obj Ljava/lang/Object;
0 6 2 offset J
0 6 4 value S
1 6 5 res I
MethodParameters:
Name Flags
unsafe
obj
offset
value
public static int unsafePutChar(sun.misc.Unsafe, java.lang.Object, long, char);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;JC)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: iconst_1
istore 5
start local 5 1: aload 0
aload 1
lload 2
iload 4
iconst_1
iadd
i2c
invokevirtual sun.misc.Unsafe.putChar:(Ljava/lang/Object;JC)V
2: iload 5
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
iadd
istore 5
3: aload 0
aload 1
lload 2
iload 4
iconst_2
iadd
i2c
invokevirtual sun.misc.Unsafe.putCharVolatile:(Ljava/lang/Object;JC)V
4: iload 5
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
iadd
istore 5
5: iload 5
ireturn
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 unsafe Lsun/misc/Unsafe;
0 6 1 obj Ljava/lang/Object;
0 6 2 offset J
0 6 4 value C
1 6 5 res I
MethodParameters:
Name Flags
unsafe
obj
offset
value
public static int unsafePutInt(sun.misc.Unsafe, java.lang.Object, long, int);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;JI)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: iconst_1
istore 5
start local 5 1: aload 0
aload 1
lload 2
iload 4
invokevirtual sun.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
2: iload 5
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
iadd
istore 5
3: aload 0
aload 1
lload 2
iload 4
iconst_1
iadd
invokevirtual sun.misc.Unsafe.putIntVolatile:(Ljava/lang/Object;JI)V
4: iload 5
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
iadd
istore 5
5: aload 0
aload 1
lload 2
iload 4
iconst_2
iadd
invokevirtual sun.misc.Unsafe.putOrderedInt:(Ljava/lang/Object;JI)V
6: iload 5
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
iadd
istore 5
7: iload 5
ireturn
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 unsafe Lsun/misc/Unsafe;
0 8 1 obj Ljava/lang/Object;
0 8 2 offset J
0 8 4 value I
1 8 5 res I
MethodParameters:
Name Flags
unsafe
obj
offset
value
public static long unsafePutLong(sun.misc.Unsafe, java.lang.Object, long, long);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;JJ)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 4 0: lconst_1
lstore 6
start local 6 1: aload 0
aload 1
lload 2
lload 4
lconst_1
ladd
invokevirtual sun.misc.Unsafe.putLong:(Ljava/lang/Object;JJ)V
2: lload 6
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
ladd
lstore 6
3: aload 0
aload 1
lload 2
lload 4
ldc 2
ladd
invokevirtual sun.misc.Unsafe.putLongVolatile:(Ljava/lang/Object;JJ)V
4: lload 6
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
ladd
lstore 6
5: aload 0
aload 1
lload 2
lload 4
ldc 3
ladd
invokevirtual sun.misc.Unsafe.putOrderedLong:(Ljava/lang/Object;JJ)V
6: lload 6
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
ladd
lstore 6
7: lload 6
lreturn
end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 unsafe Lsun/misc/Unsafe;
0 8 1 obj Ljava/lang/Object;
0 8 2 offset J
0 8 4 value J
1 8 6 res J
MethodParameters:
Name Flags
unsafe
obj
offset
value
public static float unsafePutFloat(sun.misc.Unsafe, java.lang.Object, long, float);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;JF)F
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: fconst_1
fstore 5
start local 5 1: aload 0
aload 1
lload 2
fload 4
fconst_1
fadd
invokevirtual sun.misc.Unsafe.putFloat:(Ljava/lang/Object;JF)V
2: fload 5
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getFloat:(Ljava/lang/Object;J)F
fadd
fstore 5
3: aload 0
aload 1
lload 2
fload 4
fconst_2
fadd
invokevirtual sun.misc.Unsafe.putFloatVolatile:(Ljava/lang/Object;JF)V
4: fload 5
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getFloat:(Ljava/lang/Object;J)F
fadd
fstore 5
5: fload 5
freturn
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 unsafe Lsun/misc/Unsafe;
0 6 1 obj Ljava/lang/Object;
0 6 2 offset J
0 6 4 value F
1 6 5 res F
MethodParameters:
Name Flags
unsafe
obj
offset
value
public static double unsafePutDouble(sun.misc.Unsafe, java.lang.Object, long, double);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;JD)D
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 4 0: dconst_1
dstore 6
start local 6 1: aload 0
aload 1
lload 2
dload 4
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
2: dload 6
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getDouble:(Ljava/lang/Object;J)D
dadd
dstore 6
3: aload 0
aload 1
lload 2
dload 4
invokevirtual sun.misc.Unsafe.putDoubleVolatile:(Ljava/lang/Object;JD)V
4: dload 6
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getDouble:(Ljava/lang/Object;J)D
dadd
dstore 6
5: dload 6
dreturn
end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 unsafe Lsun/misc/Unsafe;
0 6 1 obj Ljava/lang/Object;
0 6 2 offset J
0 6 4 value D
1 6 6 res D
MethodParameters:
Name Flags
unsafe
obj
offset
value
public static java.lang.Object[] unsafePutObject(sun.misc.Unsafe, java.lang.Object, long, java.lang.Object, java.lang.Object, java.lang.Object);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 4 start local 5 start local 6 0: iconst_3
anewarray java.lang.Object
astore 7
start local 7 1: aload 0
aload 1
lload 2
aload 4
invokevirtual sun.misc.Unsafe.putObject:(Ljava/lang/Object;JLjava/lang/Object;)V
2: aload 7
iconst_0
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getObject:(Ljava/lang/Object;J)Ljava/lang/Object;
aastore
3: aload 0
aload 1
lload 2
aload 5
invokevirtual sun.misc.Unsafe.putObjectVolatile:(Ljava/lang/Object;JLjava/lang/Object;)V
4: aload 7
iconst_1
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getObject:(Ljava/lang/Object;J)Ljava/lang/Object;
aastore
5: aload 0
aload 1
lload 2
aload 6
invokevirtual sun.misc.Unsafe.putOrderedObject:(Ljava/lang/Object;JLjava/lang/Object;)V
6: aload 7
iconst_2
aload 0
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getObject:(Ljava/lang/Object;J)Ljava/lang/Object;
aastore
7: aload 7
areturn
end local 7 end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 unsafe Lsun/misc/Unsafe;
0 8 1 obj Ljava/lang/Object;
0 8 2 offset J
0 8 4 value1 Ljava/lang/Object;
0 8 5 value2 Ljava/lang/Object;
0 8 6 value3 Ljava/lang/Object;
1 8 7 res [Ljava/lang/Object;
MethodParameters:
Name Flags
unsafe
obj
offset
value1
value2
value3
public static long unsafeGetAddress(sun.misc.Unsafe, long);
descriptor: (Lsun/misc/Unsafe;J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
invokevirtual sun.misc.Unsafe.getAddress:(J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 unsafe Lsun/misc/Unsafe;
0 1 1 offset J
MethodParameters:
Name Flags
unsafe
offset
public static long unsafePutAddress(sun.misc.Unsafe, long, long);
descriptor: (Lsun/misc/Unsafe;JJ)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 3 0: lconst_1
lstore 5
start local 5 1: aload 0
lload 1
lload 3
invokevirtual sun.misc.Unsafe.putAddress:(JJ)V
2: lload 5
aload 0
lload 1
invokevirtual sun.misc.Unsafe.getAddress:(J)J
ladd
lstore 5
3: lload 5
lreturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 unsafe Lsun/misc/Unsafe;
0 4 1 offset J
0 4 3 value J
1 4 5 res J
MethodParameters:
Name Flags
unsafe
offset
value
public static double unsafeDirectMemoryRead(sun.misc.Unsafe, long);
descriptor: (Lsun/misc/Unsafe;J)D
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
invokevirtual sun.misc.Unsafe.getByte:(J)B
1: aload 0
lload 1
ldc 8
ladd
invokevirtual sun.misc.Unsafe.getShort:(J)S
2: iadd
3: aload 0
lload 1
ldc 16
ladd
invokevirtual sun.misc.Unsafe.getChar:(J)C
4: iadd
5: aload 0
lload 1
ldc 24
ladd
invokevirtual sun.misc.Unsafe.getInt:(J)I
6: iadd
i2l
7: aload 0
lload 1
ldc 32
ladd
invokevirtual sun.misc.Unsafe.getLong:(J)J
8: ladd
l2f
9: aload 0
lload 1
ldc 40
ladd
invokevirtual sun.misc.Unsafe.getFloat:(J)F
10: fadd
f2d
11: aload 0
lload 1
ldc 48
ladd
invokevirtual sun.misc.Unsafe.getDouble:(J)D
12: dadd
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 unsafe Lsun/misc/Unsafe;
0 13 1 address J
MethodParameters:
Name Flags
unsafe
address
public static double unsafeDirectMemoryWrite(sun.misc.Unsafe, long, long);
descriptor: (Lsun/misc/Unsafe;JJ)D
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
lload 1
lconst_0
ladd
lload 3
l2i
i2b
invokevirtual sun.misc.Unsafe.putByte:(JB)V
1: aload 0
lload 1
ldc 8
ladd
lload 3
l2i
i2s
invokevirtual sun.misc.Unsafe.putShort:(JS)V
2: aload 0
lload 1
ldc 16
ladd
lload 3
l2i
i2c
invokevirtual sun.misc.Unsafe.putChar:(JC)V
3: aload 0
lload 1
ldc 24
ladd
lload 3
l2i
invokevirtual sun.misc.Unsafe.putInt:(JI)V
4: aload 0
lload 1
ldc 32
ladd
lload 3
invokevirtual sun.misc.Unsafe.putLong:(JJ)V
5: aload 0
lload 1
ldc 40
ladd
lload 3
l2f
invokevirtual sun.misc.Unsafe.putFloat:(JF)V
6: aload 0
lload 1
ldc 48
ladd
lload 3
l2d
invokevirtual sun.misc.Unsafe.putDouble:(JD)V
7: aload 0
lload 1
invokestatic org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.unsafeDirectMemoryRead:(Lsun/misc/Unsafe;J)D
dreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 unsafe Lsun/misc/Unsafe;
0 8 1 address J
0 8 3 value J
MethodParameters:
Name Flags
unsafe
address
value
public static java.lang.String unsafeAllocateInstance(sun.misc.Unsafe);
descriptor: (Lsun/misc/Unsafe;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc Lorg/graalvm/compiler/replacements/test/UnsafeSubstitutionsTest$MyObject;
invokevirtual sun.misc.Unsafe.allocateInstance:(Ljava/lang/Class;)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 unsafe Lsun/misc/Unsafe;
Exceptions:
throws java.lang.InstantiationException
MethodParameters:
Name Flags
unsafe
public void testAllocateInstance();
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/test/UnsafeSubstitutionsTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public void testGetAndAddInt();
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/test/UnsafeSubstitutionsTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public static int getAndAddInt(java.lang.Object, long, int);
descriptor: (Ljava/lang/Object;JI)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 3 0: getstatic org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.UNSAFE:Lsun/misc/Unsafe;
aload 0
lload 1
iload 3
invokevirtual sun.misc.Unsafe.getAndAddInt:(Ljava/lang/Object;JI)I
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
0 1 1 offset J
0 1 3 delta I
MethodParameters:
Name Flags
obj
offset
delta
public void testGetAndAddLong();
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/test/UnsafeSubstitutionsTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public static long getAndAddLong(java.lang.Object, long, long);
descriptor: (Ljava/lang/Object;JJ)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 3 0: getstatic org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.UNSAFE:Lsun/misc/Unsafe;
aload 0
lload 1
lload 3
invokevirtual sun.misc.Unsafe.getAndAddLong:(Ljava/lang/Object;JJ)J
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
0 1 1 offset J
0 1 3 delta J
MethodParameters:
Name Flags
obj
offset
delta
public void testGetAndSetInt();
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/test/UnsafeSubstitutionsTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public static int getAndSetInt(java.lang.Object, long, int);
descriptor: (Ljava/lang/Object;JI)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 3 0: getstatic org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.UNSAFE:Lsun/misc/Unsafe;
aload 0
lload 1
iload 3
invokevirtual sun.misc.Unsafe.getAndSetInt:(Ljava/lang/Object;JI)I
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
0 1 1 offset J
0 1 3 newValue I
MethodParameters:
Name Flags
obj
offset
newValue
public void testGetAndSetLong();
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/test/UnsafeSubstitutionsTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public static long getAndSetLong(java.lang.Object, long, long);
descriptor: (Ljava/lang/Object;JJ)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 3 0: getstatic org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.UNSAFE:Lsun/misc/Unsafe;
aload 0
lload 1
lload 3
invokevirtual sun.misc.Unsafe.getAndSetLong:(Ljava/lang/Object;JJ)J
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
0 1 1 offset J
0 1 3 newValue J
MethodParameters:
Name Flags
obj
offset
newValue
public void testGetAndSetObject();
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/test/UnsafeSubstitutionsTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public static java.lang.Object getAndSetObject(java.lang.Object, long, java.lang.Object);
descriptor: (Ljava/lang/Object;JLjava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 3 0: getstatic org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest.UNSAFE:Lsun/misc/Unsafe;
aload 0
lload 1
aload 3
invokevirtual sun.misc.Unsafe.getAndSetObject:(Ljava/lang/Object;JLjava/lang/Object;)Ljava/lang/Object;
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
0 1 1 offset J
0 1 3 newValue Ljava/lang/Object;
MethodParameters:
Name Flags
obj
offset
newValue
}
SourceFile: "UnsafeSubstitutionsTest.java"
NestMembers:
org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest$Foo org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest$MyObject
InnerClasses:
Foo = org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest$Foo of org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest
MyObject = org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest$MyObject of org.graalvm.compiler.replacements.test.UnsafeSubstitutionsTest