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: .line 136
            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 // org.graalvm.compiler.hotspot.test.Crasher this
         0: .line 116
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.graalvm.compiler.hotspot.test.Crasher this
      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 // java.lang.String[] args
         0: .line 118
            iconst_0
            istore 1 /* iter */
        start local 1 // int iter
         1: .line 119
            getstatic org.graalvm.compiler.hotspot.test.Crasher.UNSAFE:Lsun/misc/Unsafe;
            ldc 1000
            invokevirtual sun.misc.Unsafe.allocateMemory:(J)J
            lstore 2 /* mem */
        start local 2 // long mem
         2: .line 120
            goto 5
         3: .line 121
      StackMap locals: int long
      StackMap stack:
            lload 2 /* mem */
            iload 1 /* iter */
            invokestatic org.graalvm.compiler.hotspot.test.Crasher.tryCrash:(JI)I
            pop
         4: .line 122
            iinc 1 /* iter */ 1
         5: .line 120
      StackMap locals:
      StackMap stack:
            iload 1 /* iter */
            ldc 2147483647
            if_icmplt 3
         6: .line 124
            return
        end local 2 // long mem
        end local 1 // int iter
        end local 0 // java.lang.String[] args
      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 // long mem
        start local 2 // int iter
         0: .line 127
            invokestatic org.graalvm.compiler.api.directives.GraalDirectives.inCompiledCode:()Z
            ifeq 3
         1: .line 128
            getstatic org.graalvm.compiler.hotspot.test.Crasher.UNSAFE:Lsun/misc/Unsafe;
            lconst_0
            iload 2 /* iter */
            invokevirtual sun.misc.Unsafe.putInt:(JI)V
         2: .line 129
            iconst_0
            ireturn
         3: .line 131
      StackMap locals:
      StackMap stack:
            getstatic org.graalvm.compiler.hotspot.test.Crasher.UNSAFE:Lsun/misc/Unsafe;
            lload 0 /* mem */
            iload 2 /* iter */
            invokevirtual sun.misc.Unsafe.putInt:(JI)V
         4: .line 132
            getstatic org.graalvm.compiler.hotspot.test.Crasher.UNSAFE:Lsun/misc/Unsafe;
            lload 0 /* mem */
            invokevirtual sun.misc.Unsafe.getInt:(J)I
            ireturn
        end local 2 // int iter
        end local 0 // long mem
      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: .line 141
            invokestatic sun.misc.Unsafe.getUnsafe:()Lsun/misc/Unsafe;
         1: areturn
         2: .line 142
      StackMap locals:
      StackMap stack: java.lang.SecurityException
            pop
         3: .line 145
            ldc Lsun/misc/Unsafe;
            ldc "theUnsafe"
            invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
            astore 0 /* theUnsafe */
        start local 0 // java.lang.reflect.Field theUnsafe
         4: .line 146
            aload 0 /* theUnsafe */
            iconst_1
            invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
         5: .line 147
            aload 0 /* theUnsafe */
            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 // java.lang.reflect.Field theUnsafe
         7: .line 148
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 0 /* e */
        start local 0 // java.lang.Exception e
         8: .line 149
            new java.lang.RuntimeException
            dup
            ldc "exception while trying to get Unsafe"
            aload 0 /* e */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 0 // java.lang.Exception e
      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"