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
{
static final sun.misc.Unsafe UNSAFE;
descriptor: Lsun/misc/Unsafe;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.graalvm.compiler.replacements.UnsafeAccess.initUnsafe:()Lsun/misc/Unsafe;
putstatic org.graalvm.compiler.replacements.UnsafeAccess.UNSAFE:Lsun/misc/Unsafe;
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
}
SourceFile: "UnsafeAccess.java"