class org.graalvm.compiler.hotspot.test.Crasher
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.graalvm.compiler.hotspot.test.Crasher
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.hotspot.test.Crasher.initUnsafe:()Lsun/misc/Unsafe;
putstatic org.graalvm.compiler.hotspot.test.Crasher.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/hotspot/test/Crasher;
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: getstatic org.graalvm.compiler.hotspot.test.Crasher.UNSAFE:Lsun/misc/Unsafe;
ldc 1000
invokevirtual sun.misc.Unsafe.allocateMemory:(J)J
lstore 2
start local 2 2: goto 5
3: StackMap locals: int long
StackMap stack:
lload 2
iload 1
invokestatic org.graalvm.compiler.hotspot.test.Crasher.tryCrash:(JI)I
pop
4: iinc 1 1
5: StackMap locals:
StackMap stack:
iload 1
ldc 2147483647
if_icmplt 3
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 args [Ljava/lang/String;
1 7 1 iter I
2 7 2 mem J
MethodParameters:
Name Flags
args
protected static int tryCrash(long, int);
descriptor: (JI)I
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 2 0: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.inCompiledCode:()Z
ifeq 3
1: getstatic org.graalvm.compiler.hotspot.test.Crasher.UNSAFE:Lsun/misc/Unsafe;
lconst_0
iload 2
invokevirtual sun.misc.Unsafe.putInt:(JI)V
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.hotspot.test.Crasher.UNSAFE:Lsun/misc/Unsafe;
lload 0
iload 2
invokevirtual sun.misc.Unsafe.putInt:(JI)V
4: getstatic org.graalvm.compiler.hotspot.test.Crasher.UNSAFE:Lsun/misc/Unsafe;
lload 0
invokevirtual sun.misc.Unsafe.getInt:(J)I
ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 mem J
0 5 2 iter I
MethodParameters:
Name Flags
mem
iter
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: "HsErrLogTest.java"