final class jdk.internal.foreign.MemoryScope$Root$Child extends jdk.internal.foreign.MemoryScope
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.foreign.MemoryScope$Root$Child
super_class: jdk.internal.foreign.MemoryScope
{
final jdk.internal.foreign.MemoryScope$Root this$1;
descriptor: Ljdk/internal/foreign/MemoryScope$Root;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private void <init>(jdk.internal.foreign.MemoryScope$Root, java.lang.Thread);
descriptor: (Ljdk/internal/foreign/MemoryScope$Root;Ljava/lang/Thread;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield jdk.internal.foreign.MemoryScope$Root$Child.this$1:Ljdk/internal/foreign/MemoryScope$Root;
1: aload 0
aload 2
invokespecial jdk.internal.foreign.MemoryScope.<init>:(Ljava/lang/Thread;)V
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/foreign/MemoryScope$Root$Child;
0 3 2 owner Ljava/lang/Thread;
MethodParameters:
Name Flags
this$0 final
owner
jdk.internal.foreign.MemoryScope acquire();
descriptor: ()Ljdk/internal/foreign/MemoryScope;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.foreign.MemoryScope$Root$Child.this$1:Ljdk/internal/foreign/MemoryScope$Root;
invokevirtual jdk.internal.foreign.MemoryScope$Root.acquire:()Ljdk/internal/foreign/MemoryScope;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/MemoryScope$Root$Child;
jdk.internal.foreign.MemoryScope dup(java.lang.Thread);
descriptor: (Ljava/lang/Thread;)Ljdk/internal/foreign/MemoryScope;
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.foreign.MemoryScope$Root$Child.checkValidState:()V
1: new jdk.internal.foreign.MemoryScope$Root$Child
dup
aload 0
getfield jdk.internal.foreign.MemoryScope$Root$Child.this$1:Ljdk/internal/foreign/MemoryScope$Root;
aload 1
invokespecial jdk.internal.foreign.MemoryScope$Root$Child.<init>:(Ljdk/internal/foreign/MemoryScope$Root;Ljava/lang/Thread;)V
astore 2
start local 2 2: getstatic jdk.internal.foreign.MemoryScope.CLOSED:Ljava/lang/invoke/VarHandle;
aload 0
iconst_1
invokevirtual java.lang.invoke.VarHandle.setVolatile:(Ljdk/internal/foreign/MemoryScope$Root$Child;Z)V
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/foreign/MemoryScope$Root$Child;
0 4 1 newOwner Ljava/lang/Thread;
2 4 2 duped Ljdk/internal/foreign/MemoryScope$Root$Child;
MethodParameters:
Name Flags
newOwner
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.foreign.MemoryScope$Root$Child.checkValidState:()V
1: getstatic jdk.internal.foreign.MemoryScope.CLOSED:Ljava/lang/invoke/VarHandle;
aload 0
iconst_1
invokevirtual java.lang.invoke.VarHandle.set:(Ljdk/internal/foreign/MemoryScope$Root$Child;Z)V
2: aload 0
getfield jdk.internal.foreign.MemoryScope$Root$Child.this$1:Ljdk/internal/foreign/MemoryScope$Root;
getfield jdk.internal.foreign.MemoryScope$Root.acquired:Ljava/util/concurrent/atomic/LongAdder;
invokevirtual java.util.concurrent.atomic.LongAdder.decrement:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/foreign/MemoryScope$Root$Child;
}
SourceFile: "MemoryScope.java"
NestHost: jdk.internal.foreign.MemoryScope
InnerClasses:
private final Root = jdk.internal.foreign.MemoryScope$Root of jdk.internal.foreign.MemoryScope
private final Child = jdk.internal.foreign.MemoryScope$Root$Child of jdk.internal.foreign.MemoryScope$Root