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 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 2
aload 3
aload 4
invokespecial jdk.internal.foreign.MemoryScope.<init>:(Ljava/lang/Object;Ljava/lang/Runnable;Ljava/lang/ref/Cleaner;)V
1: aload 0
aload 1
putfield jdk.internal.foreign.MemoryScope$ConfinedScope.owner:Ljava/lang/Thread;
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 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 0: aload 0
getfield jdk.internal.foreign.MemoryScope$ConfinedScope.owner:Ljava/lang/Thread;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
if_acmpeq 2
1: new java.lang.IllegalStateException
dup
ldc "Attempted access outside owning thread"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.foreign.MemoryScope$ConfinedScope.closed:Z
ifeq 4
3: getstatic jdk.internal.misc.ScopedMemoryAccess$Scope$ScopedAccessError.INSTANCE:Ljdk/internal/misc/ScopedMemoryAccess$Scope$ScopedAccessError;
athrow
4: StackMap locals:
StackMap stack:
return
end local 0 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 0: aload 0
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 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 0: aload 0
invokevirtual jdk.internal.foreign.MemoryScope$ConfinedScope.checkValidState:()V
1: aload 0
iconst_1
putfield jdk.internal.foreign.MemoryScope$ConfinedScope.closed:Z
2: return
end local 0 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 0: aload 0
getfield jdk.internal.foreign.MemoryScope$ConfinedScope.owner:Ljava/lang/Thread;
areturn
end local 0 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