public class jdk.internal.foreign.NativeMemorySegmentImpl extends jdk.internal.foreign.AbstractMemorySegmentImpl
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: jdk.internal.foreign.NativeMemorySegmentImpl
  super_class: jdk.internal.foreign.AbstractMemorySegmentImpl
{
  private static final jdk.internal.misc.Unsafe unsafe;
    descriptor: Ljdk/internal/misc/Unsafe;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final long MAX_ALIGN;
    descriptor: J
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final boolean skipZeroMemory;
    descriptor: Z
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  final long min;
    descriptor: J
    flags: (0x0010) ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 45
            invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
            putstatic jdk.internal.foreign.NativeMemorySegmentImpl.unsafe:Ljdk/internal/misc/Unsafe;
         1: .line 49
            getstatic jdk.internal.misc.Unsafe.ADDRESS_SIZE:I
            iconst_4
            if_icmpne 2
            bipush 8
            goto 3
      StackMap locals:
      StackMap stack:
         2: bipush 16
      StackMap locals:
      StackMap stack: int
         3: i2l
            putstatic jdk.internal.foreign.NativeMemorySegmentImpl.MAX_ALIGN:J
         4: .line 51
            ldc "jdk.internal.foreign.skipZeroMemory"
            invokestatic sun.security.action.GetBooleanAction.privilegedGetProperty:(Ljava/lang/String;)Z
            putstatic jdk.internal.foreign.NativeMemorySegmentImpl.skipZeroMemory:Z
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>(long, long, int, jdk.internal.foreign.MemoryScope);
    descriptor: (JJILjdk/internal/foreign/MemoryScope;)V
    flags: (0x0000) 
    Code:
      stack=5, locals=7, args_size=5
        start local 0 // jdk.internal.foreign.NativeMemorySegmentImpl this
        start local 1 // long min
        start local 3 // long length
        start local 5 // int mask
        start local 6 // jdk.internal.foreign.MemoryScope scope
         0: .line 57
            aload 0 /* this */
            lload 3 /* length */
            iload 5 /* mask */
            aload 6 /* scope */
            invokespecial jdk.internal.foreign.AbstractMemorySegmentImpl.<init>:(JILjdk/internal/foreign/MemoryScope;)V
         1: .line 58
            aload 0 /* this */
            lload 1 /* min */
            putfield jdk.internal.foreign.NativeMemorySegmentImpl.min:J
         2: .line 59
            return
        end local 6 // jdk.internal.foreign.MemoryScope scope
        end local 5 // int mask
        end local 3 // long length
        end local 1 // long min
        end local 0 // jdk.internal.foreign.NativeMemorySegmentImpl this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    3     0    this  Ljdk/internal/foreign/NativeMemorySegmentImpl;
            0    3     1     min  J
            0    3     3  length  J
            0    3     5    mask  I
            0    3     6   scope  Ljdk/internal/foreign/MemoryScope;
    RuntimeVisibleAnnotations: 
      jdk.internal.vm.annotation.ForceInline()
    MethodParameters:
        Name  Flags
      min     
      length  
      mask    
      scope   

  jdk.internal.foreign.NativeMemorySegmentImpl dup(long, long, int, jdk.internal.foreign.MemoryScope);
    descriptor: (JJILjdk/internal/foreign/MemoryScope;)Ljdk/internal/foreign/NativeMemorySegmentImpl;
    flags: (0x0000) 
    Code:
      stack=8, locals=7, args_size=5
        start local 0 // jdk.internal.foreign.NativeMemorySegmentImpl this
        start local 1 // long offset
        start local 3 // long size
        start local 5 // int mask
        start local 6 // jdk.internal.foreign.MemoryScope scope
         0: .line 63
            new jdk.internal.foreign.NativeMemorySegmentImpl
            dup
            aload 0 /* this */
            getfield jdk.internal.foreign.NativeMemorySegmentImpl.min:J
            lload 1 /* offset */
            ladd
            lload 3 /* size */
            iload 5 /* mask */
            aload 6 /* scope */
            invokespecial jdk.internal.foreign.NativeMemorySegmentImpl.<init>:(JJILjdk/internal/foreign/MemoryScope;)V
            areturn
        end local 6 // jdk.internal.foreign.MemoryScope scope
        end local 5 // int mask
        end local 3 // long size
        end local 1 // long offset
        end local 0 // jdk.internal.foreign.NativeMemorySegmentImpl this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    1     0    this  Ljdk/internal/foreign/NativeMemorySegmentImpl;
            0    1     1  offset  J
            0    1     3    size  J
            0    1     5    mask  I
            0    1     6   scope  Ljdk/internal/foreign/MemoryScope;
    MethodParameters:
        Name  Flags
      offset  
      size    
      mask    
      scope   

  java.nio.ByteBuffer makeByteBuffer();
    descriptor: ()Ljava/nio/ByteBuffer;
    flags: (0x0000) 
    Code:
      stack=6, locals=2, args_size=1
        start local 0 // jdk.internal.foreign.NativeMemorySegmentImpl this
         0: .line 68
            invokestatic jdk.internal.access.SharedSecrets.getJavaNioAccess:()Ljdk/internal/access/JavaNioAccess;
            astore 1 /* nioAccess */
        start local 1 // jdk.internal.access.JavaNioAccess nioAccess
         1: .line 69
            aload 1 /* nioAccess */
            aload 0 /* this */
            invokevirtual jdk.internal.foreign.NativeMemorySegmentImpl.min:()J
            aload 0 /* this */
            getfield jdk.internal.foreign.NativeMemorySegmentImpl.length:J
            l2i
            aconst_null
            aload 0 /* this */
            invokeinterface jdk.internal.access.JavaNioAccess.newDirectByteBuffer:(JILjava/lang/Object;Ljdk/internal/access/foreign/MemorySegmentProxy;)Ljava/nio/ByteBuffer;
            areturn
        end local 1 // jdk.internal.access.JavaNioAccess nioAccess
        end local 0 // jdk.internal.foreign.NativeMemorySegmentImpl this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    2     0       this  Ljdk/internal/foreign/NativeMemorySegmentImpl;
            1    2     1  nioAccess  Ljdk/internal/access/JavaNioAccess;

  long min();
    descriptor: ()J
    flags: (0x0000) 
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.internal.foreign.NativeMemorySegmentImpl this
         0: .line 74
            aload 0 /* this */
            getfield jdk.internal.foreign.NativeMemorySegmentImpl.min:J
            lreturn
        end local 0 // jdk.internal.foreign.NativeMemorySegmentImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/foreign/NativeMemorySegmentImpl;

  java.lang.Object base();
    descriptor: ()Ljava/lang/Object;
    flags: (0x0000) 
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.internal.foreign.NativeMemorySegmentImpl this
         0: .line 79
            aconst_null
            areturn
        end local 0 // jdk.internal.foreign.NativeMemorySegmentImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/foreign/NativeMemorySegmentImpl;

  public static jdk.incubator.foreign.MemorySegment makeNativeSegment(long, long);
    descriptor: (JJ)Ljdk/incubator/foreign/MemorySegment;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=8, locals=14, args_size=2
        start local 0 // long bytesSize
        start local 2 // long alignmentBytes
         0: .line 85
            lload 0 /* bytesSize */
            lstore 4 /* alignedSize */
        start local 4 // long alignedSize
         1: .line 87
            lload 2 /* alignmentBytes */
            getstatic jdk.internal.foreign.NativeMemorySegmentImpl.MAX_ALIGN:J
            lcmp
            ifle 3
         2: .line 88
            lload 0 /* bytesSize */
            lload 2 /* alignmentBytes */
            lconst_1
            lsub
            ladd
            lstore 4 /* alignedSize */
         3: .line 91
      StackMap locals: long
      StackMap stack:
            getstatic jdk.internal.foreign.NativeMemorySegmentImpl.unsafe:Ljdk/internal/misc/Unsafe;
            lload 4 /* alignedSize */
            invokevirtual jdk.internal.misc.Unsafe.allocateMemory:(J)J
            lstore 6 /* buf */
        start local 6 // long buf
         4: .line 92
            getstatic jdk.internal.foreign.NativeMemorySegmentImpl.skipZeroMemory:Z
            ifne 6
         5: .line 93
            getstatic jdk.internal.foreign.NativeMemorySegmentImpl.unsafe:Ljdk/internal/misc/Unsafe;
            lload 6 /* buf */
            lload 4 /* alignedSize */
            iconst_0
            invokevirtual jdk.internal.misc.Unsafe.setMemory:(JJB)V
         6: .line 95
      StackMap locals: long
      StackMap stack:
            lload 6 /* buf */
            lload 2 /* alignmentBytes */
            invokestatic jdk.internal.foreign.Utils.alignUp:(JJ)J
            lstore 8 /* alignedBuf */
        start local 8 // long alignedBuf
         7: .line 96
            aconst_null
            lload 6 /* buf */
            invokedynamic run(J)Ljava/lang/Runnable;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  ()V
                  jdk/internal/foreign/NativeMemorySegmentImpl.lambda$0(J)V (6)
                  ()V
            invokestatic jdk.internal.foreign.MemoryScope.create:(Ljava/lang/Object;Ljava/lang/Runnable;)Ljdk/internal/foreign/MemoryScope;
            astore 10 /* scope */
        start local 10 // jdk.internal.foreign.MemoryScope scope
         8: .line 97
            new jdk.internal.foreign.NativeMemorySegmentImpl
            dup
            lload 6 /* buf */
            lload 4 /* alignedSize */
         9: .line 98
            lload 4 /* alignedSize */
            invokestatic jdk.internal.foreign.NativeMemorySegmentImpl.defaultAccessModes:(J)I
            aload 10 /* scope */
        10: .line 97
            invokespecial jdk.internal.foreign.NativeMemorySegmentImpl.<init>:(JJILjdk/internal/foreign/MemoryScope;)V
            astore 11 /* segment */
        start local 11 // jdk.incubator.foreign.MemorySegment segment
        11: .line 99
            lload 4 /* alignedSize */
            lload 0 /* bytesSize */
            lcmp
            ifeq 14
        12: .line 100
            lload 8 /* alignedBuf */
            lload 6 /* buf */
            lsub
            lstore 12 /* delta */
        start local 12 // long delta
        13: .line 101
            aload 11 /* segment */
            lload 12 /* delta */
            lload 0 /* bytesSize */
            invokeinterface jdk.incubator.foreign.MemorySegment.asSlice:(JJ)Ljdk/incubator/foreign/MemorySegment;
            astore 11 /* segment */
        end local 12 // long delta
        14: .line 103
      StackMap locals: long jdk.internal.foreign.MemoryScope jdk.incubator.foreign.MemorySegment
      StackMap stack:
            aload 11 /* segment */
            areturn
        end local 11 // jdk.incubator.foreign.MemorySegment segment
        end local 10 // jdk.internal.foreign.MemoryScope scope
        end local 8 // long alignedBuf
        end local 6 // long buf
        end local 4 // long alignedSize
        end local 2 // long alignmentBytes
        end local 0 // long bytesSize
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   15     0       bytesSize  J
            0   15     2  alignmentBytes  J
            1   15     4     alignedSize  J
            4   15     6             buf  J
            7   15     8      alignedBuf  J
            8   15    10           scope  Ljdk/internal/foreign/MemoryScope;
           11   15    11         segment  Ljdk/incubator/foreign/MemorySegment;
           13   14    12           delta  J
    MethodParameters:
                Name  Flags
      bytesSize       
      alignmentBytes  

  public static jdk.incubator.foreign.MemorySegment makeNativeSegmentUnchecked(jdk.incubator.foreign.MemoryAddress, long, java.lang.Thread, java.lang.Runnable, java.lang.Object);
    descriptor: (Ljdk/incubator/foreign/MemoryAddress;JLjava/lang/Thread;Ljava/lang/Runnable;Ljava/lang/Object;)Ljdk/incubator/foreign/MemorySegment;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=8, locals=7, args_size=5
        start local 0 // jdk.incubator.foreign.MemoryAddress min
        start local 1 // long bytesSize
        start local 3 // java.lang.Thread owner
        start local 4 // java.lang.Runnable cleanup
        start local 5 // java.lang.Object attachment
         0: .line 107
            aload 3 /* owner */
            aload 5 /* attachment */
            aload 4 /* cleanup */
            invokestatic jdk.internal.foreign.MemoryScope.createUnchecked:(Ljava/lang/Thread;Ljava/lang/Object;Ljava/lang/Runnable;)Ljdk/internal/foreign/MemoryScope;
            astore 6 /* scope */
        start local 6 // jdk.internal.foreign.MemoryScope scope
         1: .line 108
            new jdk.internal.foreign.NativeMemorySegmentImpl
            dup
            aload 0 /* min */
            invokeinterface jdk.incubator.foreign.MemoryAddress.toRawLongValue:()J
            lload 1 /* bytesSize */
            lload 1 /* bytesSize */
            invokestatic jdk.internal.foreign.NativeMemorySegmentImpl.defaultAccessModes:(J)I
            aload 6 /* scope */
            invokespecial jdk.internal.foreign.NativeMemorySegmentImpl.<init>:(JJILjdk/internal/foreign/MemoryScope;)V
            areturn
        end local 6 // jdk.internal.foreign.MemoryScope scope
        end local 5 // java.lang.Object attachment
        end local 4 // java.lang.Runnable cleanup
        end local 3 // java.lang.Thread owner
        end local 1 // long bytesSize
        end local 0 // jdk.incubator.foreign.MemoryAddress min
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    2     0         min  Ljdk/incubator/foreign/MemoryAddress;
            0    2     1   bytesSize  J
            0    2     3       owner  Ljava/lang/Thread;
            0    2     4     cleanup  Ljava/lang/Runnable;
            0    2     5  attachment  Ljava/lang/Object;
            1    2     6       scope  Ljdk/internal/foreign/MemoryScope;
    MethodParameters:
            Name  Flags
      min         
      bytesSize   
      owner       
      cleanup     
      attachment  

  jdk.internal.foreign.AbstractMemorySegmentImpl dup(long, long, int, jdk.internal.foreign.MemoryScope);
    descriptor: (JJILjdk/internal/foreign/MemoryScope;)Ljdk/internal/foreign/AbstractMemorySegmentImpl;
    flags: (0x1040) ACC_BRIDGE, ACC_SYNTHETIC
    Code:
      stack=7, locals=7, args_size=5
         0: .line 1
            aload 0
            lload 1
            lload 3
            iload 5
            aload 6
            invokevirtual jdk.internal.foreign.NativeMemorySegmentImpl.dup:(JJILjdk/internal/foreign/MemoryScope;)Ljdk/internal/foreign/NativeMemorySegmentImpl;
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private static void lambda$0(long);
    descriptor: (J)V
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=3, locals=2, args_size=1
         0: .line 96
            getstatic jdk.internal.foreign.NativeMemorySegmentImpl.unsafe:Ljdk/internal/misc/Unsafe;
            lload 0
            invokevirtual jdk.internal.misc.Unsafe.freeMemory:(J)V
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature
}
SourceFile: "NativeMemorySegmentImpl.java"
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles