final class com.oracle.svm.core.jdk.DirectMemoryAccessors
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: com.oracle.svm.core.jdk.DirectMemoryAccessors
  super_class: java.lang.Object
{
  private static boolean initialized;
    descriptor: Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC

  private static long directMemory;
    descriptor: J
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC

  private static boolean pageAlignDirectMemory;
    descriptor: Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC

  void <init>();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.oracle.svm.core.jdk.DirectMemoryAccessors this
         0: .line 74
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // com.oracle.svm.core.jdk.DirectMemoryAccessors this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/oracle/svm/core/jdk/DirectMemoryAccessors;

  static long getDirectMemory();
    descriptor: ()J
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 86
            getstatic com.oracle.svm.core.jdk.DirectMemoryAccessors.initialized:Z
            ifne 2
         1: .line 87
            invokestatic com.oracle.svm.core.jdk.DirectMemoryAccessors.initialize:()V
         2: .line 89
      StackMap locals:
      StackMap stack:
            getstatic com.oracle.svm.core.jdk.DirectMemoryAccessors.directMemory:J
            lreturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  static boolean getPageAlignDirectMemory();
    descriptor: ()Z
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 93
            getstatic com.oracle.svm.core.jdk.DirectMemoryAccessors.initialized:Z
            ifne 2
         1: .line 94
            invokestatic com.oracle.svm.core.jdk.DirectMemoryAccessors.initialize:()V
         2: .line 96
      StackMap locals:
      StackMap stack:
            getstatic com.oracle.svm.core.jdk.DirectMemoryAccessors.pageAlignDirectMemory:Z
            ireturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private static void initialize();
    descriptor: ()V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=2, args_size=0
         0: .line 106
            getstatic com.oracle.svm.core.SubstrateOptions.MaxDirectMemorySize:Lcom/oracle/svm/core/option/RuntimeOptionKey;
            invokevirtual com.oracle.svm.core.option.RuntimeOptionKey.getValue:()Ljava/lang/Object;
            checkcast java.lang.Long
            invokevirtual java.lang.Long.longValue:()J
            lstore 0 /* newDirectMemory */
        start local 0 // long newDirectMemory
         1: .line 107
            lload 0 /* newDirectMemory */
            lconst_0
            lcmp
            ifne 3
         2: .line 112
            invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
            invokevirtual java.lang.Runtime.maxMemory:()J
            lstore 0 /* newDirectMemory */
         3: .line 120
      StackMap locals: long
      StackMap stack:
            lload 0 /* newDirectMemory */
            putstatic com.oracle.svm.core.jdk.DirectMemoryAccessors.directMemory:J
         4: .line 121
            ldc "sun.nio.PageAlignDirectMemory"
            invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
            putstatic com.oracle.svm.core.jdk.DirectMemoryAccessors.pageAlignDirectMemory:Z
         5: .line 124
            invokestatic org.graalvm.compiler.serviceprovider.GraalUnsafeAccess.getUnsafe:()Lsun/misc/Unsafe;
            invokevirtual sun.misc.Unsafe.storeFence:()V
         6: .line 125
            iconst_1
            putstatic com.oracle.svm.core.jdk.DirectMemoryAccessors.initialized:Z
         7: .line 126
            return
        end local 0 // long newDirectMemory
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            1    8     0  newDirectMemory  J
}
SourceFile: "Target_jdk_internal_misc_VM.java"