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 138
            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 118
            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 120
            iconst_0
            istore 1 /* iter */
        start local 1 // int iter
         1: .line 121
            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 122
            goto 5
         3: .line 123
      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 124
            iinc 1 /* iter */ 1
         5: .line 122
      StackMap locals:
      StackMap stack:
            iload 1 /* iter */
            ldc 2147483647
            if_icmplt 3
         6: .line 126
            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 129
            invokestatic org.graalvm.compiler.api.directives.GraalDirectives.inCompiledCode:()Z
            ifeq 3
         1: .line 130
            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 131
            iconst_0
            ireturn
         3: .line 133
      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 134
            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 143
            invokestatic sun.misc.Unsafe.getUnsafe:()Lsun/misc/Unsafe;
         1: areturn
         2: .line 144
      StackMap locals:
      StackMap stack: java.lang.SecurityException
            pop
         3: .line 147
            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 148
            aload 0 /* theUnsafe */
            iconst_1
            invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
         5: .line 149
            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 150
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 0 /* e */
        start local 0 // java.lang.Exception e
         8: .line 151
            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"