public abstract class jdk.internal.foreign.AbstractNativeScope implements jdk.incubator.foreign.NativeScope
  minor version: 0
  major version: 59
  flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
  this_class: jdk.internal.foreign.AbstractNativeScope
  super_class: java.lang.Object
{
  private final java.util.List<jdk.incubator.foreign.MemorySegment> segments;
    descriptor: Ljava/util/List;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/List<Ljdk/incubator/foreign/MemorySegment;>;

  private final java.lang.Thread ownerThread;
    descriptor: Ljava/lang/Thread;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private static final int SCOPE_MASK;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 3

  void <init>();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.internal.foreign.AbstractNativeScope this
         0: .line 42
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 37
            aload 0 /* this */
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            putfield jdk.internal.foreign.AbstractNativeScope.segments:Ljava/util/List;
         2: .line 43
            aload 0 /* this */
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            putfield jdk.internal.foreign.AbstractNativeScope.ownerThread:Ljava/lang/Thread;
         3: .line 44
            return
        end local 0 // jdk.internal.foreign.AbstractNativeScope this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Ljdk/internal/foreign/AbstractNativeScope;

  public java.lang.Thread ownerThread();
    descriptor: ()Ljava/lang/Thread;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.internal.foreign.AbstractNativeScope this
         0: .line 48
            aload 0 /* this */
            getfield jdk.internal.foreign.AbstractNativeScope.ownerThread:Ljava/lang/Thread;
            areturn
        end local 0 // jdk.internal.foreign.AbstractNativeScope this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/foreign/AbstractNativeScope;

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.internal.foreign.AbstractNativeScope this
         0: .line 53
            aload 0 /* this */
            getfield jdk.internal.foreign.AbstractNativeScope.segments:Ljava/util/List;
            invokedynamic accept()Ljava/util/function/Consumer;
              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:
                  (Ljava/lang/Object;)V
                  jdk/incubator/foreign/MemorySegment.close()V (9 itf)
                  (Ljdk/incubator/foreign/MemorySegment;)V
            invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
         1: .line 54
            return
        end local 0 // jdk.internal.foreign.AbstractNativeScope this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/internal/foreign/AbstractNativeScope;

  void checkOwnerThread();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.internal.foreign.AbstractNativeScope this
         0: .line 57
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            aload 0 /* this */
            invokevirtual jdk.internal.foreign.AbstractNativeScope.ownerThread:()Ljava/lang/Thread;
            if_acmpeq 2
         1: .line 58
            new java.lang.IllegalStateException
            dup
            ldc "Attempt to access scope from different thread"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 60
      StackMap locals:
      StackMap stack:
            return
        end local 0 // jdk.internal.foreign.AbstractNativeScope this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Ljdk/internal/foreign/AbstractNativeScope;

  jdk.incubator.foreign.MemorySegment newSegment(long, long);
    descriptor: (JJ)Ljdk/incubator/foreign/MemorySegment;
    flags: (0x0000) 
    Code:
      stack=4, locals=6, args_size=3
        start local 0 // jdk.internal.foreign.AbstractNativeScope this
        start local 1 // long size
        start local 3 // long align
         0: .line 63
            lload 1 /* size */
            lload 3 /* align */
            invokestatic jdk.incubator.foreign.MemorySegment.allocateNative:(JJ)Ljdk/incubator/foreign/MemorySegment;
            astore 5 /* segment */
        start local 5 // jdk.incubator.foreign.MemorySegment segment
         1: .line 64
            aload 0 /* this */
            getfield jdk.internal.foreign.AbstractNativeScope.segments:Ljava/util/List;
            aload 5 /* segment */
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
         2: .line 65
            aload 5 /* segment */
            areturn
        end local 5 // jdk.incubator.foreign.MemorySegment segment
        end local 3 // long align
        end local 1 // long size
        end local 0 // jdk.internal.foreign.AbstractNativeScope this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    3     0     this  Ljdk/internal/foreign/AbstractNativeScope;
            0    3     1     size  J
            0    3     3    align  J
            1    3     5  segment  Ljdk/incubator/foreign/MemorySegment;
    MethodParameters:
       Name  Flags
      size   
      align  

  jdk.incubator.foreign.MemorySegment newSegment(long);
    descriptor: (J)Ljdk/incubator/foreign/MemorySegment;
    flags: (0x0000) 
    Code:
      stack=5, locals=3, args_size=2
        start local 0 // jdk.internal.foreign.AbstractNativeScope this
        start local 1 // long size
         0: .line 69
            aload 0 /* this */
            lload 1 /* size */
            lload 1 /* size */
            invokevirtual jdk.internal.foreign.AbstractNativeScope.newSegment:(JJ)Ljdk/incubator/foreign/MemorySegment;
            areturn
        end local 1 // long size
        end local 0 // jdk.internal.foreign.AbstractNativeScope this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/foreign/AbstractNativeScope;
            0    1     1  size  J
    MethodParameters:
      Name  Flags
      size  

  public void register(jdk.incubator.foreign.MemorySegment);
    descriptor: (Ljdk/incubator/foreign/MemorySegment;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.internal.foreign.AbstractNativeScope this
        start local 1 // jdk.incubator.foreign.MemorySegment segment
         0: .line 73
            aload 0 /* this */
            getfield jdk.internal.foreign.AbstractNativeScope.segments:Ljava/util/List;
            aload 1 /* segment */
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
         1: .line 74
            return
        end local 1 // jdk.incubator.foreign.MemorySegment segment
        end local 0 // jdk.internal.foreign.AbstractNativeScope this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    2     0     this  Ljdk/internal/foreign/AbstractNativeScope;
            0    2     1  segment  Ljdk/incubator/foreign/MemorySegment;
    MethodParameters:
         Name  Flags
      segment  
}
SourceFile: "AbstractNativeScope.java"
NestMembers:
  jdk.internal.foreign.AbstractNativeScope$BoundedNativeScope  jdk.internal.foreign.AbstractNativeScope$UnboundedNativeScope
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  public BoundedNativeScope = jdk.internal.foreign.AbstractNativeScope$BoundedNativeScope of jdk.internal.foreign.AbstractNativeScope
  public UnboundedNativeScope = jdk.internal.foreign.AbstractNativeScope$UnboundedNativeScope of jdk.internal.foreign.AbstractNativeScope