public class org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest extends org.graalvm.compiler.core.test.GraalCompilerTest
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest
  super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
  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 40
            invokestatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.initUnsafe:()Lsun/misc/Unsafe;
            putstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
         0: .line 38
            aload 0 /* this */
            invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
            return
        end local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;

  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 45
            invokestatic sun.misc.Unsafe.getUnsafe:()Lsun/misc/Unsafe;
         1: areturn
         2: .line 46
      StackMap locals:
      StackMap stack: java.lang.SecurityException
            pop
         3: .line 49
            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 50
            aload 0 /* theUnsafe */
            iconst_1
            invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
         5: .line 51
            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 52
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 0 /* e */
        start local 0 // java.lang.Exception e
         8: .line 53
            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

  public byte unboxByteAndStore(long, byte[]);
    descriptor: (J[B)B
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=5, args_size=3
        start local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
        start local 1 // long memory
        start local 3 // byte[] box
         0: .line 59
            aload 3 /* box */
            iconst_0
            baload
            istore 4 /* val */
        start local 4 // byte val
         1: .line 60
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            lload 1 /* memory */
            iload 4 /* val */
            invokevirtual sun.misc.Unsafe.putByte:(JB)V
         2: .line 61
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            aconst_null
            lload 1 /* memory */
            iload 4 /* val */
            invokevirtual sun.misc.Unsafe.putByte:(Ljava/lang/Object;JB)V
         3: .line 62
            aload 3 /* box */
            iconst_0
            baload
            ireturn
        end local 4 // byte val
        end local 3 // byte[] box
        end local 1 // long memory
        end local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    4     0    this  Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
            0    4     1  memory  J
            0    4     3     box  [B
            1    4     4     val  B
    MethodParameters:
        Name  Flags
      memory  
      box     

  public char unboxCharAndStore(long, char[]);
    descriptor: (J[C)C
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=5, args_size=3
        start local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
        start local 1 // long memory
        start local 3 // char[] box
         0: .line 66
            aload 3 /* box */
            iconst_0
            caload
            istore 4 /* val */
        start local 4 // char val
         1: .line 67
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            lload 1 /* memory */
            iload 4 /* val */
            invokevirtual sun.misc.Unsafe.putChar:(JC)V
         2: .line 68
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            aconst_null
            lload 1 /* memory */
            iload 4 /* val */
            invokevirtual sun.misc.Unsafe.putChar:(Ljava/lang/Object;JC)V
         3: .line 69
            aload 3 /* box */
            iconst_0
            caload
            ireturn
        end local 4 // char val
        end local 3 // char[] box
        end local 1 // long memory
        end local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    4     0    this  Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
            0    4     1  memory  J
            0    4     3     box  [C
            1    4     4     val  C
    MethodParameters:
        Name  Flags
      memory  
      box     

  public int unboxIntAndStore(long, int[]);
    descriptor: (J[I)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=5, args_size=3
        start local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
        start local 1 // long memory
        start local 3 // int[] box
         0: .line 73
            aload 3 /* box */
            iconst_0
            iaload
            istore 4 /* val */
        start local 4 // int val
         1: .line 74
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            lload 1 /* memory */
            iload 4 /* val */
            invokevirtual sun.misc.Unsafe.putInt:(JI)V
         2: .line 75
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            aconst_null
            lload 1 /* memory */
            iload 4 /* val */
            invokevirtual sun.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
         3: .line 76
            aload 3 /* box */
            iconst_0
            iaload
            ireturn
        end local 4 // int val
        end local 3 // int[] box
        end local 1 // long memory
        end local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    4     0    this  Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
            0    4     1  memory  J
            0    4     3     box  [I
            1    4     4     val  I
    MethodParameters:
        Name  Flags
      memory  
      box     

  public long unboxLongAndStore(long, long[]);
    descriptor: (J[J)J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=6, args_size=3
        start local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
        start local 1 // long memory
        start local 3 // long[] box
         0: .line 80
            aload 3 /* box */
            iconst_0
            laload
            lstore 4 /* val */
        start local 4 // long val
         1: .line 81
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            lload 1 /* memory */
            lload 4 /* val */
            invokevirtual sun.misc.Unsafe.putLong:(JJ)V
         2: .line 82
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            aconst_null
            lload 1 /* memory */
            lload 4 /* val */
            invokevirtual sun.misc.Unsafe.putLong:(Ljava/lang/Object;JJ)V
         3: .line 83
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            lload 1 /* memory */
            lload 4 /* val */
            invokevirtual sun.misc.Unsafe.putAddress:(JJ)V
         4: .line 84
            aload 3 /* box */
            iconst_0
            laload
            lreturn
        end local 4 // long val
        end local 3 // long[] box
        end local 1 // long memory
        end local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    5     0    this  Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
            0    5     1  memory  J
            0    5     3     box  [J
            1    5     4     val  J
    MethodParameters:
        Name  Flags
      memory  
      box     

  public float unboxFloatAndStore(long, float[]);
    descriptor: (J[F)F
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=5, args_size=3
        start local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
        start local 1 // long memory
        start local 3 // float[] box
         0: .line 88
            aload 3 /* box */
            iconst_0
            faload
            fstore 4 /* val */
        start local 4 // float val
         1: .line 89
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            lload 1 /* memory */
            fload 4 /* val */
            invokevirtual sun.misc.Unsafe.putFloat:(JF)V
         2: .line 90
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            aconst_null
            lload 1 /* memory */
            fload 4 /* val */
            invokevirtual sun.misc.Unsafe.putFloat:(Ljava/lang/Object;JF)V
         3: .line 91
            aload 3 /* box */
            iconst_0
            faload
            freturn
        end local 4 // float val
        end local 3 // float[] box
        end local 1 // long memory
        end local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    4     0    this  Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
            0    4     1  memory  J
            0    4     3     box  [F
            1    4     4     val  F
    MethodParameters:
        Name  Flags
      memory  
      box     

  public double unboxDoubleAndStore(long, double[]);
    descriptor: (J[D)D
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=6, args_size=3
        start local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
        start local 1 // long memory
        start local 3 // double[] box
         0: .line 95
            aload 3 /* box */
            iconst_0
            daload
            dstore 4 /* val */
        start local 4 // double val
         1: .line 96
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            lload 1 /* memory */
            dload 4 /* val */
            invokevirtual sun.misc.Unsafe.putDouble:(JD)V
         2: .line 97
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            aconst_null
            lload 1 /* memory */
            dload 4 /* val */
            invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
         3: .line 98
            aload 3 /* box */
            iconst_0
            daload
            dreturn
        end local 4 // double val
        end local 3 // double[] box
        end local 1 // long memory
        end local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    4     0    this  Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
            0    4     1  memory  J
            0    4     3     box  [D
            1    4     4     val  D
    MethodParameters:
        Name  Flags
      memory  
      box     

  private void assertExactlyOneArrayLoad(jdk.vm.ci.meta.JavaKind);
    descriptor: (Ljdk/vm/ci/meta/JavaKind;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
         0: .line 108
            new java.lang.Error
            dup
            ldc "Unresolved compilation problem: \n\tAssert cannot be resolved\n"
            invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
            athrow
        end local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
    MethodParameters:
             Name  Flags
      elementKind  

  public void testGet();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
         0: .line 111
            new java.lang.Error
            dup
            ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
            invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
            athrow
        end local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
    RuntimeInvisibleAnnotations: 
      Test()

  protected long allocBuf();
    descriptor: ()J
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
         0: .line 141
            getstatic org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest.UNSAFE:Lsun/misc/Unsafe;
            ldc 16
            invokevirtual sun.misc.Unsafe.allocateMemory:(J)J
         1: lreturn
         2: .line 142
      StackMap locals:
      StackMap stack: java.lang.OutOfMemoryError
            pop
         3: .line 143
            lconst_0
            lreturn
        end local 0 // org.graalvm.compiler.core.test.OffHeapUnsafeAccessTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/graalvm/compiler/core/test/OffHeapUnsafeAccessTest;
      Exception table:
        from    to  target  type
           0     1       2  Class java.lang.OutOfMemoryError
}
SourceFile: "OffHeapUnsafeAccessTest.java"