class org.graalvm.compiler.replacements.UnsafeAccess
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.graalvm.compiler.replacements.UnsafeAccess
super_class: java.lang.Object
{
private static final sun.misc.Unsafe THE_UNSAFE;
descriptor: Lsun/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final org.graalvm.compiler.replacements.UnsafeAccess UNSAFE;
descriptor: Lorg/graalvm/compiler/replacements/UnsafeAccess;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic org.graalvm.compiler.replacements.UnsafeAccess.initUnsafe:()Lsun/misc/Unsafe;
putstatic org.graalvm.compiler.replacements.UnsafeAccess.THE_UNSAFE:Lsun/misc/Unsafe;
1: new org.graalvm.compiler.replacements.UnsafeAccess
dup
invokespecial org.graalvm.compiler.replacements.UnsafeAccess.<init>:()V
putstatic org.graalvm.compiler.replacements.UnsafeAccess.UNSAFE:Lorg/graalvm/compiler/replacements/UnsafeAccess;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/UnsafeAccess;
private static sun.misc.Unsafe initUnsafe();
descriptor: ()Lsun/misc/Unsafe;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: invokestatic sun.misc.Unsafe.getUnsafe:()Lsun/misc/Unsafe;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.SecurityException
pop
3: ldc Lsun/misc/Unsafe;
ldc "theUnsafe"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 0
start local 0 4: aload 0
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
5: aload 0
ldc Lsun/misc/Unsafe;
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.misc.Unsafe
6: areturn
end local 0 7: StackMap locals:
StackMap stack: java.lang.Exception
astore 0
start local 0 8: 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 LocalVariableTable:
Start End Slot Name Signature
4 7 0 theUnsafe Ljava/lang/reflect/Field;
8 9 0 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.SecurityException
3 6 7 Class java.lang.Exception
public char getChar(java.lang.Object, long);
descriptor: (Ljava/lang/Object;J)C
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.replacements.UnsafeAccess.THE_UNSAFE:Lsun/misc/Unsafe;
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getChar:(Ljava/lang/Object;J)C
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/UnsafeAccess;
0 1 1 target Ljava/lang/Object;
0 1 2 l J
MethodParameters:
Name Flags
target
l
public byte getByte(java.lang.Object, long);
descriptor: (Ljava/lang/Object;J)B
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.replacements.UnsafeAccess.THE_UNSAFE:Lsun/misc/Unsafe;
aload 1
lload 2
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/UnsafeAccess;
0 1 1 target Ljava/lang/Object;
0 1 2 l J
MethodParameters:
Name Flags
target
l
}
SourceFile: "UnsafeAccess.java"