public class org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature implements org.graalvm.nativeimage.hosted.Feature
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature
super_class: java.lang.Object
{
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 Lorg/graalvm/polyglot/nativeapi/PolyglotNativeAPIFeature;
public void afterRegistration(org.graalvm.nativeimage.hosted.Feature$AfterRegistrationAccess);
descriptor: (Lorg/graalvm/nativeimage/hosted/Feature$AfterRegistrationAccess;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: invokestatic com.oracle.svm.hosted.NativeImageOptions.getCStandard:()Lcom/oracle/svm/hosted/NativeImageOptions$CStandards;
getstatic com.oracle.svm.hosted.NativeImageOptions$CStandards.C11:Lcom/oracle/svm/hosted/NativeImageOptions$CStandards;
invokevirtual com.oracle.svm.hosted.NativeImageOptions$CStandards.compatibleWith:(Lcom/oracle/svm/hosted/NativeImageOptions$CStandards;)Z
ifne 2
1: ldc "Polyglot native API supports only the C11 standard. Pass -H:CStandard=C11 on the command line to make the build work."
iconst_0
anewarray java.lang.Object
invokestatic com.oracle.svm.core.util.UserError.abort:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/oracle/svm/core/util/UserError$UserException;
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/polyglot/nativeapi/PolyglotNativeAPIFeature;
0 3 1 access Lorg/graalvm/nativeimage/hosted/Feature$AfterRegistrationAccess;
MethodParameters:
Name Flags
access
public void afterImageWrite(org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess);
descriptor: (Lorg/graalvm/nativeimage/hosted/Feature$AfterImageWriteAccess;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: ldc "polyglot_types.h"
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
astore 2
start local 2 1: aload 1
invokeinterface org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess.getImagePath:()Ljava/nio/file/Path;
astore 3
start local 3 2: aload 2
aload 3
invokedynamic accept(Ljava/nio/file/Path;)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
org/graalvm/polyglot/nativeapi/PolyglotNativeAPIFeature.lambda$0(Ljava/nio/file/Path;Ljava/lang/String;)V (6)
(Ljava/lang/String;)V
invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
3: ldc Lorg/graalvm/nativeimage/Platform$DARWIN;
invokestatic org.graalvm.nativeimage.Platform.includedIn:(Ljava/lang/Class;)Z
ifeq 28
4: ldc "org.graalvm.polyglot.install_name_id"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 5: aload 4
ifnonnull 11
6: ldc "Warning: no id passed through `org.graalvm.polyglot.install_name_id`:\n%s might include its absolute path as id (see man install_name_tool)"
iconst_1
anewarray java.lang.Object
dup
iconst_0
7: aload 3
aastore
8: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 5
start local 5 9: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 5
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 5 10: goto 28
11: StackMap locals: java.util.List java.nio.file.Path java.lang.String
StackMap stack:
iconst_4
anewarray java.lang.String
dup
iconst_0
ldc "install_name_tool"
aastore
dup
iconst_1
ldc "-id"
aastore
dup
iconst_2
aload 4
aastore
dup
iconst_3
aload 3
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
astore 5
start local 5 12: aconst_null
astore 6
start local 6 13: aload 5
invokestatic com.oracle.svm.hosted.c.util.FileUtils.executeCommand:(Ljava/util/List;)Ljava/lang/Process;
astore 6
14: aload 6
invokevirtual java.lang.Process.exitValue:()I
istore 7
start local 7 15: iload 7
ifeq 26
16: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Failed to set `id` install name. install_name_tool exited with code %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 7 17: goto 26
StackMap locals: org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess java.util.List java.nio.file.Path java.lang.String java.util.List java.lang.Process
StackMap stack: java.io.IOException
18: astore 7
start local 7 19: new java.lang.RuntimeException
dup
aload 7
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 7 20: StackMap locals:
StackMap stack: java.lang.InterruptedException
pop
21: new com.oracle.svm.core.util.InterruptImageBuilding
dup
new java.lang.StringBuilder
dup
ldc "Interrupted in call to: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
aload 5
invokestatic java.lang.String.join:(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial com.oracle.svm.core.util.InterruptImageBuilding.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals:
StackMap stack: java.lang.Throwable
astore 8
23: aload 6
ifnull 25
24: aload 6
invokevirtual java.lang.Process.destroy:()V
25: StackMap locals: org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess java.util.List java.nio.file.Path java.lang.String java.util.List java.lang.Process top java.lang.Throwable
StackMap stack:
aload 8
athrow
26: StackMap locals: org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess java.util.List java.nio.file.Path java.lang.String java.util.List java.lang.Process
StackMap stack:
aload 6
ifnull 28
27: aload 6
invokevirtual java.lang.Process.destroy:()V
end local 6 end local 5 end local 4 28: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/graalvm/polyglot/nativeapi/PolyglotNativeAPIFeature;
0 29 1 access Lorg/graalvm/nativeimage/hosted/Feature$AfterImageWriteAccess;
1 29 2 headerFiles Ljava/util/List<Ljava/lang/String;>;
2 29 3 imagePath Ljava/nio/file/Path;
5 28 4 id Ljava/lang/String;
9 10 5 msg Ljava/lang/String;
12 28 5 command Ljava/util/List<Ljava/lang/String;>;
13 28 6 installToolProcess Ljava/lang/Process;
15 17 7 exitCode I
19 20 7 e Ljava/io/IOException;
Exception table:
from to target type
13 17 18 Class java.io.IOException
13 17 20 Class java.lang.InterruptedException
13 22 22 any
MethodParameters:
Name Flags
access
private static void lambda$0(java.nio.file.Path, java.lang.String);
descriptor: (Ljava/nio/file/Path;Ljava/lang/String;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=5, args_size=2
start local 1 0: ldc "org.graalvm.polyglot.nativeapi.libraryPath"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 1
aastore
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
start local 2 1: aload 0
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
aload 1
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 2: aload 2
aload 3
iconst_1
anewarray java.nio.file.CopyOption
dup
iconst_0
getstatic java.nio.file.StandardCopyOption.REPLACE_EXISTING:Ljava/nio/file/StandardCopyOption;
aastore
invokestatic java.nio.file.Files.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
pop
3: goto 6
StackMap locals: java.nio.file.Path java.lang.String java.nio.file.Path java.nio.file.Path
StackMap stack: java.io.IOException
4: astore 4
start local 4 5: new java.lang.RuntimeException
dup
aload 4
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 7 1 headerFile Ljava/lang/String;
1 6 2 source Ljava/nio/file/Path;
2 6 3 destination Ljava/nio/file/Path;
5 6 4 e Ljava/io/IOException;
Exception table:
from to target type
2 3 4 Class java.io.IOException
}
SourceFile: "PolyglotNativeAPIFeature.java"
InnerClasses:
public UserException = com.oracle.svm.core.util.UserError$UserException of com.oracle.svm.core.util.UserError
public final CStandards = com.oracle.svm.hosted.NativeImageOptions$CStandards of com.oracle.svm.hosted.NativeImageOptions
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract DARWIN = org.graalvm.nativeimage.Platform$DARWIN of org.graalvm.nativeimage.Platform
public abstract AfterImageWriteAccess = org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess of org.graalvm.nativeimage.hosted.Feature
public abstract AfterRegistrationAccess = org.graalvm.nativeimage.hosted.Feature$AfterRegistrationAccess of org.graalvm.nativeimage.hosted.Feature