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 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.internal.foreign.AbstractNativeScope.segments:Ljava/util/List;
2: aload 0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
putfield jdk.internal.foreign.AbstractNativeScope.ownerThread:Ljava/lang/Thread;
3: return
end local 0 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 0: aload 0
getfield jdk.internal.foreign.AbstractNativeScope.ownerThread:Ljava/lang/Thread;
areturn
end local 0 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 0: aload 0
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: return
end local 0 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 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
invokevirtual jdk.internal.foreign.AbstractNativeScope.ownerThread:()Ljava/lang/Thread;
if_acmpeq 2
1: new java.lang.IllegalStateException
dup
ldc "Attempt to access scope from different thread"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 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 start local 1 start local 3 0: lload 1
lload 3
invokestatic jdk.incubator.foreign.MemorySegment.allocateNative:(JJ)Ljdk/incubator/foreign/MemorySegment;
astore 5
start local 5 1: aload 0
getfield jdk.internal.foreign.AbstractNativeScope.segments:Ljava/util/List;
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: aload 5
areturn
end local 5 end local 3 end local 1 end local 0 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 start local 1 0: aload 0
lload 1
lload 1
invokevirtual jdk.internal.foreign.AbstractNativeScope.newSegment:(JJ)Ljdk/incubator/foreign/MemorySegment;
areturn
end local 1 end local 0 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 start local 1 0: aload 0
getfield jdk.internal.foreign.AbstractNativeScope.segments:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 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