class jdk.internal.foreign.MemoryScope$ConfinedScope extends jdk.internal.foreign.MemoryScope
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: jdk.internal.foreign.MemoryScope$ConfinedScope
  super_class: jdk.internal.foreign.MemoryScope
{
  private boolean closed;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  final java.lang.Thread owner;
    descriptor: Ljava/lang/Thread;
    flags: (0x0010) ACC_FINAL

  public void <init>(java.lang.Thread, java.lang.Object, java.lang.Runnable, java.lang.ref.Cleaner);
    descriptor: (Ljava/lang/Thread;Ljava/lang/Object;Ljava/lang/Runnable;Ljava/lang/ref/Cleaner;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=5, args_size=5
        start local 0 // jdk.internal.foreign.MemoryScope$ConfinedScope this
        start local 1 // java.lang.Thread owner
        start local 2 // java.lang.Object ref
        start local 3 // java.lang.Runnable cleanupAction
        start local 4 // java.lang.ref.Cleaner cleaner
         0: .line 199
            aload 0 /* this */
            aload 2 /* ref */
            aload 3 /* cleanupAction */
            aload 4 /* cleaner */
            invokespecial jdk.internal.foreign.MemoryScope.<init>:(Ljava/lang/Object;Ljava/lang/Runnable;Ljava/lang/ref/Cleaner;)V
         1: .line 200
            aload 0 /* this */
            aload 1 /* owner */
            putfield jdk.internal.foreign.MemoryScope$ConfinedScope.owner:Ljava/lang/Thread;
         2: .line 201
            return
        end local 4 // java.lang.ref.Cleaner cleaner
        end local 3 // java.lang.Runnable cleanupAction
        end local 2 // java.lang.Object ref
        end local 1 // java.lang.Thread owner
        end local 0 // jdk.internal.foreign.MemoryScope$ConfinedScope this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0    3     0           this  Ljdk/internal/foreign/MemoryScope$ConfinedScope;
            0    3     1          owner  Ljava/lang/Thread;
            0    3     2            ref  Ljava/lang/Object;
            0    3     3  cleanupAction  Ljava/lang/Runnable;
            0    3     4        cleaner  Ljava/lang/ref/Cleaner;
    MethodParameters:
               Name  Flags
      owner          
      ref            
      cleanupAction  
      cleaner        

  public final void checkValidState();
    descriptor: ()V
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.internal.foreign.MemoryScope$ConfinedScope this
         0: .line 205
            aload 0 /* this */
            getfield jdk.internal.foreign.MemoryScope$ConfinedScope.owner:Ljava/lang/Thread;
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            if_acmpeq 2
         1: .line 206
            new java.lang.IllegalStateException
            dup
            ldc "Attempted access outside owning thread"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 208
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.foreign.MemoryScope$ConfinedScope.closed:Z
            ifeq 4
         3: .line 209
            getstatic jdk.internal.misc.ScopedMemoryAccess$Scope$ScopedAccessError.INSTANCE:Ljdk/internal/misc/ScopedMemoryAccess$Scope$ScopedAccessError;
            athrow
         4: .line 211
      StackMap locals:
      StackMap stack:
            return
        end local 0 // jdk.internal.foreign.MemoryScope$ConfinedScope this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Ljdk/internal/foreign/MemoryScope$ConfinedScope;
    RuntimeVisibleAnnotations: 
      jdk.internal.vm.annotation.ForceInline()

  public boolean isAlive();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.internal.foreign.MemoryScope$ConfinedScope this
         0: .line 215
            aload 0 /* this */
            getfield jdk.internal.foreign.MemoryScope$ConfinedScope.closed:Z
            ifeq 1
            iconst_0
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_1
      StackMap locals:
      StackMap stack: int
         2: ireturn
        end local 0 // jdk.internal.foreign.MemoryScope$ConfinedScope this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Ljdk/internal/foreign/MemoryScope$ConfinedScope;

  void justClose();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.internal.foreign.MemoryScope$ConfinedScope this
         0: .line 219
            aload 0 /* this */
            invokevirtual jdk.internal.foreign.MemoryScope$ConfinedScope.checkValidState:()V
         1: .line 220
            aload 0 /* this */
            iconst_1
            putfield jdk.internal.foreign.MemoryScope$ConfinedScope.closed:Z
         2: .line 221
            return
        end local 0 // jdk.internal.foreign.MemoryScope$ConfinedScope this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Ljdk/internal/foreign/MemoryScope$ConfinedScope;

  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.MemoryScope$ConfinedScope this
         0: .line 225
            aload 0 /* this */
            getfield jdk.internal.foreign.MemoryScope$ConfinedScope.owner:Ljava/lang/Thread;
            areturn
        end local 0 // jdk.internal.foreign.MemoryScope$ConfinedScope this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/foreign/MemoryScope$ConfinedScope;
}
SourceFile: "MemoryScope.java"
NestHost: jdk.internal.foreign.MemoryScope
InnerClasses:
  ConfinedScope = jdk.internal.foreign.MemoryScope$ConfinedScope of jdk.internal.foreign.MemoryScope
  public abstract Scope = jdk.internal.misc.ScopedMemoryAccess$Scope of jdk.internal.misc.ScopedMemoryAccess
  public final ScopedAccessError = jdk.internal.misc.ScopedMemoryAccess$Scope$ScopedAccessError of jdk.internal.misc.ScopedMemoryAccess$Scope