public class jdk.internal.foreign.abi.UpcallStubs
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.foreign.abi.UpcallStubs
super_class: java.lang.Object
{
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=0, locals=0, args_size=0
0: invokestatic jdk.internal.foreign.abi.UpcallStubs.registerNatives:()V
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/abi/UpcallStubs;
public static jdk.incubator.foreign.MemorySegment upcallAddress(jdk.internal.foreign.abi.UpcallHandler);
descriptor: (Ljdk/internal/foreign/abi/UpcallHandler;)Ljdk/incubator/foreign/MemorySegment;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface jdk.internal.foreign.abi.UpcallHandler.entryPoint:()J
lstore 1
start local 1 1: lload 1
invokestatic jdk.incubator.foreign.MemoryAddress.ofLong:(J)Ljdk/incubator/foreign/MemoryAddress;
lconst_0
lload 1
invokedynamic run(J)Ljava/lang/Runnable;
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:
()V
jdk/internal/foreign/abi/UpcallStubs.lambda$0(J)V (6)
()V
aconst_null
2: invokestatic jdk.internal.foreign.NativeMemorySegmentImpl.makeNativeSegmentUnchecked:(Ljdk/incubator/foreign/MemoryAddress;JLjava/lang/Runnable;Ljava/lang/Object;)Ljdk/incubator/foreign/MemorySegment;
3: invokeinterface jdk.incubator.foreign.MemorySegment.share:()Ljdk/incubator/foreign/MemorySegment;
4: bipush 28
invokeinterface jdk.incubator.foreign.MemorySegment.withAccessModes:(I)Ljdk/incubator/foreign/MemorySegment;
5: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 handler Ljdk/internal/foreign/abi/UpcallHandler;
1 6 1 stubAddress J
MethodParameters:
Name Flags
handler
private static void freeUpcallStub(long);
descriptor: (J)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: lload 0
invokestatic jdk.internal.foreign.abi.UpcallStubs.freeUpcallStub0:(J)Z
ifne 2
1: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Not a stub address: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 0
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
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 stubAddress J
MethodParameters:
Name Flags
stubAddress
private static native boolean freeUpcallStub0(long);
descriptor: (J)Z
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
addr
private static native void registerNatives();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static void lambda$0(long);
descriptor: (J)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=1
0: lload 0
invokestatic jdk.internal.foreign.abi.UpcallStubs.freeUpcallStub:(J)V
return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "UpcallStubs.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles