class org.graalvm.launcher.Launcher$Native
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.graalvm.launcher.Launcher$Native
super_class: java.lang.Object
{
private java.lang.ref.WeakReference<org.graalvm.options.OptionDescriptors> compilerOptionDescriptors;
descriptor: Ljava/lang/ref/WeakReference;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/lang/ref/WeakReference<Lorg/graalvm/options/OptionDescriptors;>;
private java.lang.ref.WeakReference<org.graalvm.options.OptionDescriptors> vmOptionDescriptors;
descriptor: Ljava/lang/ref/WeakReference;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/lang/ref/WeakReference<Lorg/graalvm/options/OptionDescriptors;>;
final org.graalvm.launcher.Launcher this$0;
descriptor: Lorg/graalvm/launcher/Launcher;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/launcher/Launcher;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.launcher.Launcher$Native.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(org.graalvm.launcher.Launcher);
descriptor: (Lorg/graalvm/launcher/Launcher;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/launcher/Launcher$Native;
MethodParameters:
Name Flags
this$0 final
private org.graalvm.options.OptionDescriptors getCompilerOptions();
descriptor: ()Lorg/graalvm/options/OptionDescriptors;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield org.graalvm.launcher.Launcher$Native.compilerOptionDescriptors:Ljava/lang/ref/WeakReference;
ifnull 3
2: aload 0
getfield org.graalvm.launcher.Launcher$Native.compilerOptionDescriptors:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast org.graalvm.options.OptionDescriptors
astore 1
3: StackMap locals: org.graalvm.options.OptionDescriptors
StackMap stack:
aload 1
ifnonnull 6
4: getstatic org.graalvm.nativeimage.RuntimeOptions$OptionClass.Compiler:Lorg/graalvm/nativeimage/RuntimeOptions$OptionClass;
invokestatic java.util.EnumSet.of:(Ljava/lang/Enum;)Ljava/util/EnumSet;
invokestatic org.graalvm.nativeimage.RuntimeOptions.getOptions:(Ljava/util/EnumSet;)Lorg/graalvm/options/OptionDescriptors;
astore 1
5: aload 0
new java.lang.ref.WeakReference
dup
aload 1
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
putfield org.graalvm.launcher.Launcher$Native.compilerOptionDescriptors:Ljava/lang/ref/WeakReference;
6: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/launcher/Launcher$Native;
1 7 1 descriptors Lorg/graalvm/options/OptionDescriptors;
private org.graalvm.options.OptionDescriptors getVMOptions();
descriptor: ()Lorg/graalvm/options/OptionDescriptors;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield org.graalvm.launcher.Launcher$Native.vmOptionDescriptors:Ljava/lang/ref/WeakReference;
ifnull 3
2: aload 0
getfield org.graalvm.launcher.Launcher$Native.vmOptionDescriptors:Ljava/lang/ref/WeakReference;
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast org.graalvm.options.OptionDescriptors
astore 1
3: StackMap locals: org.graalvm.options.OptionDescriptors
StackMap stack:
aload 1
ifnonnull 6
4: getstatic org.graalvm.nativeimage.RuntimeOptions$OptionClass.VM:Lorg/graalvm/nativeimage/RuntimeOptions$OptionClass;
invokestatic java.util.EnumSet.of:(Ljava/lang/Enum;)Ljava/util/EnumSet;
invokestatic org.graalvm.nativeimage.RuntimeOptions.getOptions:(Ljava/util/EnumSet;)Lorg/graalvm/options/OptionDescriptors;
astore 1
5: aload 0
new java.lang.ref.WeakReference
dup
aload 1
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
putfield org.graalvm.launcher.Launcher$Native.vmOptionDescriptors:Ljava/lang/ref/WeakReference;
6: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/launcher/Launcher$Native;
1 7 1 descriptors Lorg/graalvm/options/OptionDescriptors;
private void setNativeOption(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "Dgraal."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
1: aload 0
aload 1
ldc "Dgraal."
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher$Native.setGraalStyleRuntimeOption:(Ljava/lang/String;)V
2: goto 15
StackMap locals:
StackMap stack:
3: aload 1
ldc "D"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
4: aload 0
aload 1
ldc "D"
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher$Native.setSystemProperty:(Ljava/lang/String;)V
5: goto 15
StackMap locals:
StackMap stack:
6: aload 1
ldc "XX:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 9
7: aload 0
aload 1
ldc "XX:"
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher$Native.setRuntimeOption:(Ljava/lang/String;)V
8: goto 15
StackMap locals:
StackMap stack:
9: aload 1
ldc "X"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 14
10: aload 0
aload 1
invokevirtual org.graalvm.launcher.Launcher$Native.isXOption:(Ljava/lang/String;)Z
ifeq 13
11: aload 0
aload 1
ldc "X"
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher$Native.setXOption:(Ljava/lang/String;)V
12: goto 15
13: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
new java.lang.StringBuilder
dup
ldc "Unrecognized vm option: '--vm."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'. Some VM options may be only supported in --jvm mode."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher.abort:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
14: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
new java.lang.StringBuilder
dup
ldc "Unrecognized vm option: '--vm."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'. Such arguments should start with '--vm.D', '--vm.XX:', or '--vm.X'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher.abort:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
15: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/graalvm/launcher/Launcher$Native;
0 16 1 arg Ljava/lang/String;
MethodParameters:
Name Flags
arg
private void setGraalStyleRuntimeOption(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: aload 1
ldc "+"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 1
aload 1
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
ldc "Dgraal option must use <name>=<value> format, not +/- prefix"
invokevirtual org.graalvm.launcher.Launcher.abort:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
2: StackMap locals:
StackMap stack:
aload 1
bipush 61
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 3: iload 2
ifge 7
4: aload 1
astore 3
start local 3 5: ldc ""
astore 4
start local 4 6: goto 9
end local 4 end local 3 7: StackMap locals: int
StackMap stack:
aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 8: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
start local 4 9: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 0
invokevirtual org.graalvm.launcher.Launcher$Native.getCompilerOptions:()Lorg/graalvm/options/OptionDescriptors;
aload 3
invokeinterface org.graalvm.options.OptionDescriptors.get:(Ljava/lang/String;)Lorg/graalvm/options/OptionDescriptor;
astore 5
start local 5 10: aload 5
ifnonnull 21
11: aload 0
invokevirtual org.graalvm.launcher.Launcher$Native.getVMOptions:()Lorg/graalvm/options/OptionDescriptors;
aload 3
invokeinterface org.graalvm.options.OptionDescriptors.get:(Ljava/lang/String;)Lorg/graalvm/options/OptionDescriptor;
astore 5
12: aload 5
ifnull 21
13: aload 0
aload 5
invokevirtual org.graalvm.launcher.Launcher$Native.isBooleanOption:(Lorg/graalvm/options/OptionDescriptor;)Z
ifeq 18
14: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
ldc "VM options such as '%s' should be set with '--vm.XX:\u00B1%<s'.%nSupport for setting them with '--vm.Dgraal.%<s=<value>' is deprecated and will be removed.%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
15: aload 3
aastore
16: invokevirtual org.graalvm.launcher.Launcher.warn:(Ljava/lang/String;[Ljava/lang/Object;)V
17: goto 21
18: StackMap locals: org.graalvm.options.OptionDescriptor
StackMap stack:
aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
ldc "VM options such as '%s' should be set with '--vm.XX:%<s=<value>'.%nSupport for setting them with '--vm.Dgraal.%<s=<value>' is deprecated and will be removed.%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
19: aload 3
aastore
20: invokevirtual org.graalvm.launcher.Launcher.warn:(Ljava/lang/String;[Ljava/lang/Object;)V
21: StackMap locals:
StackMap stack:
aload 5
ifnonnull 23
22: aload 0
aload 3
invokevirtual org.graalvm.launcher.Launcher$Native.unknownOption:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
23: StackMap locals:
StackMap stack:
aload 3
aload 5
invokevirtual org.graalvm.options.OptionDescriptor.getKey:()Lorg/graalvm/options/OptionKey;
invokevirtual org.graalvm.options.OptionKey.getType:()Lorg/graalvm/options/OptionType;
aload 4
invokevirtual org.graalvm.options.OptionType.convert:(Ljava/lang/String;)Ljava/lang/Object;
invokestatic org.graalvm.nativeimage.RuntimeOptions.set:(Ljava/lang/String;Ljava/lang/Object;)V
24: goto 27
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
25: astore 6
start local 6 26: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
new java.lang.StringBuilder
dup
ldc "Invalid argument: '--vm."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "': "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher.abort:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
end local 6 27: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lorg/graalvm/launcher/Launcher$Native;
0 28 1 arg Ljava/lang/String;
3 28 2 eqIdx I
5 7 3 key Ljava/lang/String;
8 28 3 key Ljava/lang/String;
6 7 4 value Ljava/lang/String;
9 28 4 value Ljava/lang/String;
10 28 5 descriptor Lorg/graalvm/options/OptionDescriptor;
26 27 6 iae Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
23 24 25 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
arg
public void setSystemProperty(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
bipush 61
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 1: iload 2
ifge 5
2: aload 1
astore 3
start local 3 3: ldc ""
astore 4
start local 4 4: goto 7
end local 4 end local 3 5: StackMap locals: int
StackMap stack:
aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 6: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
start local 4 7: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 3
aload 4
invokestatic java.lang.System.setProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/graalvm/launcher/Launcher$Native;
0 9 1 arg Ljava/lang/String;
1 9 2 eqIdx I
3 5 3 key Ljava/lang/String;
6 9 3 key Ljava/lang/String;
4 5 4 value Ljava/lang/String;
7 9 4 value Ljava/lang/String;
MethodParameters:
Name Flags
arg
public void setRuntimeOption(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 1
bipush 61
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 1: aload 1
ldc "+"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 2
aload 1
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 10
2: StackMap locals: int
StackMap stack:
aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
start local 3 3: iload 2
iflt 5
4: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
new java.lang.StringBuilder
dup
ldc "Invalid argument: '--vm."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "': Use either +/- or =, but not both"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher.abort:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
5: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 3
invokevirtual org.graalvm.launcher.Launcher$Native.getVMOptionDescriptor:(Ljava/lang/String;)Lorg/graalvm/options/OptionDescriptor;
astore 5
start local 5 6: aload 0
aload 5
invokevirtual org.graalvm.launcher.Launcher$Native.isBooleanOption:(Lorg/graalvm/options/OptionDescriptor;)Z
ifne 8
7: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
new java.lang.StringBuilder
dup
ldc "Invalid argument: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " is not a boolean option, set it with --vm.XX:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "=<value>."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher.abort:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
8: StackMap locals: org.graalvm.launcher.Launcher$Native java.lang.String int java.lang.String top org.graalvm.options.OptionDescriptor
StackMap stack:
aload 1
ldc "+"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
astore 4
end local 5 start local 4 9: goto 20
end local 4 end local 3 StackMap locals: org.graalvm.launcher.Launcher$Native java.lang.String int
StackMap stack:
10: iload 2
ifle 19
11: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 12: aload 0
aload 3
invokevirtual org.graalvm.launcher.Launcher$Native.getVMOptionDescriptor:(Ljava/lang/String;)Lorg/graalvm/options/OptionDescriptor;
astore 5
start local 5 13: aload 0
aload 5
invokevirtual org.graalvm.launcher.Launcher$Native.isBooleanOption:(Lorg/graalvm/options/OptionDescriptor;)Z
ifeq 15
14: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
new java.lang.StringBuilder
dup
ldc "Boolean option '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' must be set with +/- prefix, not <name>=<value> format."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher.abort:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
15: StackMap locals: org.graalvm.launcher.Launcher$Native java.lang.String int java.lang.String top org.graalvm.options.OptionDescriptor
StackMap stack:
aload 5
invokevirtual org.graalvm.options.OptionDescriptor.getKey:()Lorg/graalvm/options/OptionKey;
invokevirtual org.graalvm.options.OptionKey.getType:()Lorg/graalvm/options/OptionType;
aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual org.graalvm.options.OptionType.convert:(Ljava/lang/String;)Ljava/lang/Object;
astore 4
start local 4 16: goto 20
end local 4 StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
17: astore 6
start local 6 18: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
new java.lang.StringBuilder
dup
ldc "Invalid argument: '--vm."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "': "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher.abort:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
end local 6 end local 5 end local 3 19: StackMap locals: org.graalvm.launcher.Launcher$Native java.lang.String int
StackMap stack:
aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
new java.lang.StringBuilder
dup
ldc "Invalid argument: '--vm."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'. Prefix boolean options with + or -, suffix other options with <name>=<value>"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher.abort:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
start local 3 start local 4 20: StackMap locals: java.lang.String java.lang.Object
StackMap stack:
aload 3
aload 4
invokestatic org.graalvm.nativeimage.RuntimeOptions.set:(Ljava/lang/String;Ljava/lang/Object;)V
21: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/graalvm/launcher/Launcher$Native;
0 22 1 arg Ljava/lang/String;
1 22 2 eqIdx I
3 10 3 key Ljava/lang/String;
12 19 3 key Ljava/lang/String;
20 22 3 key Ljava/lang/String;
9 10 4 value Ljava/lang/Object;
16 17 4 value Ljava/lang/Object;
20 22 4 value Ljava/lang/Object;
6 9 5 descriptor Lorg/graalvm/options/OptionDescriptor;
13 19 5 descriptor Lorg/graalvm/options/OptionDescriptor;
18 19 6 iae Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
15 16 17 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
arg
private org.graalvm.options.OptionDescriptor getVMOptionDescriptor(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/graalvm/options/OptionDescriptor;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.graalvm.launcher.Launcher$Native.getVMOptions:()Lorg/graalvm/options/OptionDescriptors;
aload 1
invokeinterface org.graalvm.options.OptionDescriptors.get:(Ljava/lang/String;)Lorg/graalvm/options/OptionDescriptor;
astore 2
start local 2 1: aload 2
ifnonnull 7
2: aload 0
invokevirtual org.graalvm.launcher.Launcher$Native.getCompilerOptions:()Lorg/graalvm/options/OptionDescriptors;
aload 1
invokeinterface org.graalvm.options.OptionDescriptors.get:(Ljava/lang/String;)Lorg/graalvm/options/OptionDescriptor;
astore 2
3: aload 2
ifnull 7
4: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
ldc "compiler options such as '%s' should be set with '--vm.Dgraal.%<s=<value>'.%nSupport for setting them with '--vm.XX:...' is deprecated and will be removed.%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
5: aload 1
aastore
6: invokevirtual org.graalvm.launcher.Launcher.warn:(Ljava/lang/String;[Ljava/lang/Object;)V
7: StackMap locals: org.graalvm.options.OptionDescriptor
StackMap stack:
aload 2
ifnonnull 9
8: aload 0
aload 1
invokevirtual org.graalvm.launcher.Launcher$Native.unknownOption:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
9: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/graalvm/launcher/Launcher$Native;
0 10 1 key Ljava/lang/String;
1 10 2 descriptor Lorg/graalvm/options/OptionDescriptor;
MethodParameters:
Name Flags
key
private boolean isXOption(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "Xmn"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 1
aload 1
ldc "Xms"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 1
aload 1
ldc "Xmx"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 1
aload 1
ldc "Xss"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/launcher/Launcher$Native;
0 2 1 arg Ljava/lang/String;
MethodParameters:
Name Flags
arg
private void setXOption(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aconst_null
invokestatic org.graalvm.nativeimage.RuntimeOptions.set:(Ljava/lang/String;Ljava/lang/Object;)V
1: goto 4
StackMap locals:
StackMap stack: java.lang.RuntimeException
2: pop
3: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
new java.lang.StringBuilder
dup
ldc "Invalid argument: '--vm.X"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' does not specify a valid number."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher.abort:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/launcher/Launcher$Native;
0 5 1 arg Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.RuntimeException
MethodParameters:
Name Flags
arg
private boolean isBooleanOption(org.graalvm.options.OptionDescriptor);
descriptor: (Lorg/graalvm/options/OptionDescriptor;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.graalvm.options.OptionDescriptor.getKey:()Lorg/graalvm/options/OptionKey;
invokevirtual org.graalvm.options.OptionKey.getType:()Lorg/graalvm/options/OptionType;
ldc Ljava/lang/Boolean;
invokestatic org.graalvm.options.OptionType.defaultType:(Ljava/lang/Class;)Lorg/graalvm/options/OptionType;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/launcher/Launcher$Native;
0 1 1 descriptor Lorg/graalvm/options/OptionDescriptor;
MethodParameters:
Name Flags
descriptor
private org.graalvm.launcher.Launcher$AbortException unknownOption(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
new java.lang.StringBuilder
dup
ldc "Unknown native option: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ". Use --help:vm to list available options."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher.abort:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/launcher/Launcher$Native;
0 1 1 key Ljava/lang/String;
MethodParameters:
Name Flags
key
private void printNativeHelp();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=1
start local 0 0: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Native VM options:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
astore 1
start local 1 2: aload 0
invokevirtual org.graalvm.launcher.Launcher$Native.getVMOptions:()Lorg/graalvm/options/OptionDescriptors;
invokeinterface org.graalvm.options.OptionDescriptors.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: org.graalvm.launcher.Launcher$Native java.util.SortedMap top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.options.OptionDescriptor
astore 2
start local 2 4: aload 2
invokevirtual org.graalvm.options.OptionDescriptor.isDeprecated:()Z
ifne 6
5: aload 1
aload 2
invokevirtual org.graalvm.options.OptionDescriptor.getName:()Ljava/lang/String;
aload 2
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aload 1
invokeinterface java.util.SortedMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 25
StackMap locals:
StackMap stack:
8: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 9: aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast org.graalvm.options.OptionDescriptor
astore 4
start local 4 10: aload 4
invokevirtual org.graalvm.options.OptionDescriptor.getHelp:()Ljava/lang/String;
astore 5
start local 5 11: aload 0
aload 4
invokevirtual org.graalvm.launcher.Launcher$Native.isBooleanOption:(Lorg/graalvm/options/OptionDescriptor;)Z
ifeq 21
12: aload 4
invokevirtual org.graalvm.options.OptionDescriptor.getKey:()Lorg/graalvm/options/OptionKey;
invokevirtual org.graalvm.options.OptionKey.getDefaultValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
astore 6
start local 6 13: aload 5
invokevirtual java.lang.String.length:()I
ifeq 15
14: new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
15: StackMap locals: org.graalvm.launcher.Launcher$Native java.util.SortedMap java.util.Map$Entry java.util.Iterator org.graalvm.options.OptionDescriptor java.lang.String java.lang.Boolean
StackMap stack:
aload 6
ifnull 16
aload 6
invokevirtual java.lang.Boolean.booleanValue:()Z
ifne 18
16: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "Default: - (disabled)."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
17: goto 19
18: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "Default: + (enabled)."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
19: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
new java.lang.StringBuilder
dup
ldc "--vm.XX:\u00B1"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokevirtual org.graalvm.launcher.Launcher.launcherOption:(Ljava/lang/String;Ljava/lang/String;)V
end local 6 20: goto 25
21: StackMap locals:
StackMap stack:
aload 4
invokevirtual org.graalvm.options.OptionDescriptor.getKey:()Lorg/graalvm/options/OptionKey;
invokevirtual org.graalvm.options.OptionKey.getDefaultValue:()Ljava/lang/Object;
astore 6
start local 6 22: aload 6
instanceof java.lang.String
ifeq 24
23: new java.lang.StringBuilder
dup
ldc "\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
24: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
new java.lang.StringBuilder
dup
ldc "--vm.XX:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokevirtual org.graalvm.launcher.Launcher.launcherOption:(Ljava/lang/String;Ljava/lang/String;)V
end local 6 end local 5 end local 4 end local 2 25: StackMap locals: org.graalvm.launcher.Launcher$Native java.util.SortedMap top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
26: aload 0
invokevirtual org.graalvm.launcher.Launcher$Native.printCompilerOptions:()V
27: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
invokevirtual org.graalvm.launcher.Launcher.printBasicNativeHelp:()V
28: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/graalvm/launcher/Launcher$Native;
2 29 1 sortedOptions Ljava/util/SortedMap<Ljava/lang/String;Lorg/graalvm/options/OptionDescriptor;>;
4 6 2 descriptor Lorg/graalvm/options/OptionDescriptor;
9 25 2 entry Ljava/util/Map$Entry<Ljava/lang/String;Lorg/graalvm/options/OptionDescriptor;>;
10 25 4 descriptor Lorg/graalvm/options/OptionDescriptor;
11 25 5 helpMsg Ljava/lang/String;
13 20 6 val Ljava/lang/Boolean;
22 25 6 def Ljava/lang/Object;
private void printCompilerOptions();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=1
start local 0 0: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Compiler options:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
astore 1
start local 1 2: aload 0
invokevirtual org.graalvm.launcher.Launcher$Native.getCompilerOptions:()Lorg/graalvm/options/OptionDescriptors;
invokeinterface org.graalvm.options.OptionDescriptors.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: org.graalvm.launcher.Launcher$Native java.util.SortedMap top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.options.OptionDescriptor
astore 2
start local 2 4: aload 2
invokevirtual org.graalvm.options.OptionDescriptor.isDeprecated:()Z
ifne 6
5: aload 1
aload 2
invokevirtual org.graalvm.options.OptionDescriptor.getName:()Ljava/lang/String;
aload 2
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aload 1
invokeinterface java.util.SortedMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 15
StackMap locals:
StackMap stack:
8: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 9: aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast org.graalvm.options.OptionDescriptor
astore 4
start local 4 10: aload 4
invokevirtual org.graalvm.options.OptionDescriptor.getHelp:()Ljava/lang/String;
astore 5
start local 5 11: aload 4
invokevirtual org.graalvm.options.OptionDescriptor.getKey:()Lorg/graalvm/options/OptionKey;
invokevirtual org.graalvm.options.OptionKey.getDefaultValue:()Ljava/lang/Object;
astore 6
start local 6 12: aload 6
instanceof java.lang.String
ifeq 14
13: new java.lang.StringBuilder
dup
bipush 34
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
checkcast java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 34
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
14: StackMap locals: org.graalvm.launcher.Launcher$Native java.util.SortedMap java.util.Map$Entry java.util.Iterator org.graalvm.options.OptionDescriptor java.lang.String java.lang.Object
StackMap stack:
aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
new java.lang.StringBuilder
dup
ldc "--vm.Dgraal."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokevirtual org.graalvm.launcher.Launcher.launcherOption:(Ljava/lang/String;Ljava/lang/String;)V
end local 6 end local 5 end local 4 end local 2 15: StackMap locals: org.graalvm.launcher.Launcher$Native java.util.SortedMap top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
16: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/graalvm/launcher/Launcher$Native;
2 17 1 sortedOptions Ljava/util/SortedMap<Ljava/lang/String;Lorg/graalvm/options/OptionDescriptor;>;
4 6 2 descriptor Lorg/graalvm/options/OptionDescriptor;
9 15 2 entry Ljava/util/Map$Entry<Ljava/lang/String;Lorg/graalvm/options/OptionDescriptor;>;
10 15 4 descriptor Lorg/graalvm/options/OptionDescriptor;
11 15 5 helpMsg Ljava/lang/String;
12 15 6 def Ljava/lang/Object;
private void executePolyglot(java.util.List<java.lang.String>, );
descriptor: (Ljava/util/List;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
aload 1
invokeinterface java.util.List.size:()I
iconst_3
iadd
invokespecial java.util.ArrayList.<init>:(I)V
astore 3
start local 3 1: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
ldc "polyglot"
invokevirtual org.graalvm.launcher.Launcher.getGraalVMBinaryPath:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
start local 4 2: iload 2
ifeq 4
3: aload 3
ldc "--native"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: StackMap locals: java.util.List java.nio.file.Path
StackMap stack:
aload 3
ldc "--use-launcher"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: aload 3
aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
invokevirtual org.graalvm.launcher.Launcher.getMainClass:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: aload 3
aload 1
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
7: aload 0
aload 4
aload 3
invokevirtual org.graalvm.launcher.Launcher$Native.exec:(Ljava/nio/file/Path;Ljava/util/List;)V
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/graalvm/launcher/Launcher$Native;
0 9 1 args Ljava/util/List<Ljava/lang/String;>;
0 9 2 forceNative Z
1 9 3 command Ljava/util/List<Ljava/lang/String;>;
2 9 4 executable Ljava/nio/file/Path;
Signature: (Ljava/util/List<Ljava/lang/String;>;Z)V
MethodParameters:
Name Flags
args
forceNative
private void execJVM(java.lang.String, java.util.List<java.lang.String>, java.util.List<java.lang.String>);
descriptor: (Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.util.ArrayList
dup
aload 2
invokeinterface java.util.List.size:()I
aload 3
invokeinterface java.util.List.size:()I
iadd
iconst_4
iadd
invokespecial java.util.ArrayList.<init>:(I)V
astore 4
start local 4 1: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
ldc "java"
invokevirtual org.graalvm.launcher.Launcher.getGraalVMBinaryPath:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 5
start local 5 2: aload 1
ifnull 5
3: aload 4
ldc "-classpath"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: aload 4
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: StackMap locals: java.util.List java.nio.file.Path
StackMap stack:
aload 4
aload 2
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
6: aload 4
aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
invokevirtual org.graalvm.launcher.Launcher.getMainClass:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: aload 4
aload 3
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
8: aload 0
aload 5
aload 4
invokevirtual org.graalvm.launcher.Launcher$Native.exec:(Ljava/nio/file/Path;Ljava/util/List;)V
9: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/graalvm/launcher/Launcher$Native;
0 10 1 classpath Ljava/lang/String;
0 10 2 jvmArgs Ljava/util/List<Ljava/lang/String;>;
0 10 3 args Ljava/util/List<Ljava/lang/String;>;
1 10 4 command Ljava/util/List<Ljava/lang/String;>;
2 10 5 executable Ljava/nio/file/Path;
Signature: (Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
classpath
jvmArgs
args
private java.lang.String getClasspath(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.launcher.Launcher$Native.$assertionsDisabled:Z
ifne 1
invokestatic org.graalvm.launcher.Launcher.isAOT:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic org.graalvm.launcher.Launcher$Native.$assertionsDisabled:Z
ifne 2
getstatic org.graalvm.launcher.Launcher.CLASSPATH:Ljava/lang/String;
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 3: getstatic org.graalvm.launcher.Launcher.CLASSPATH:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifne 16
4: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
invokevirtual org.graalvm.launcher.Launcher.getGraalVMHome:()Ljava/nio/file/Path;
astore 3
start local 3 5: aload 3
ifnonnull 7
6: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
ldc "Can not resolve classpath: could not get GraalVM home"
invokevirtual org.graalvm.launcher.Launcher.abort:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
7: StackMap locals: java.lang.StringBuilder java.nio.file.Path
StackMap stack:
getstatic org.graalvm.launcher.Launcher.CLASSPATH:Ljava/lang/String;
getstatic java.io.File.pathSeparator:Ljava/lang/String;
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 15
StackMap locals: org.graalvm.launcher.Launcher$Native java.util.List java.lang.StringBuilder java.nio.file.Path top int int java.lang.String[]
StackMap stack:
8: aload 7
iload 5
aaload
astore 4
start local 4 9: aload 3
aload 4
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 8
start local 8 10: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
invokevirtual org.graalvm.launcher.Launcher.isVerbose:()Z
ifeq 12
aload 8
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 12
11: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
ldc "%s does not exist"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 8
aastore
invokevirtual org.graalvm.launcher.Launcher.warn:(Ljava/lang/String;[Ljava/lang/Object;)V
12: StackMap locals: org.graalvm.launcher.Launcher$Native java.util.List java.lang.StringBuilder java.nio.file.Path java.lang.String int int java.lang.String[] java.nio.file.Path
StackMap stack:
aload 2
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
13: aload 2
getstatic java.io.File.pathSeparatorChar:C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 8 end local 4 14: iinc 5 1
StackMap locals: org.graalvm.launcher.Launcher$Native java.util.List java.lang.StringBuilder java.nio.file.Path top int int java.lang.String[]
StackMap stack:
15: iload 5
iload 6
if_icmplt 8
end local 3 16: StackMap locals: org.graalvm.launcher.Launcher$Native java.util.List java.lang.StringBuilder
StackMap stack:
aconst_null
astore 3
start local 3 17: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
start local 4 18: goto 28
19: StackMap locals: java.lang.String java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 20: aload 5
ldc "-cp"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 21
aload 5
ldc "-classpath"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 25
21: StackMap locals: java.lang.String
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 25
22: aload 4
invokeinterface java.util.Iterator.remove:()V
23: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
24: aload 4
invokeinterface java.util.Iterator.remove:()V
25: StackMap locals:
StackMap stack:
aload 5
ldc "-Djava.class.path="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 28
26: aload 4
invokeinterface java.util.Iterator.remove:()V
27: aload 5
ldc "-Djava.class.path="
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
end local 5 28: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 19
29: aload 3
ifnull 32
30: aload 2
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
31: aload 2
getstatic java.io.File.pathSeparatorChar:C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
32: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.StringBuilder.length:()I
ifne 34
33: aconst_null
areturn
34: StackMap locals:
StackMap stack:
aload 2
iconst_0
aload 2
invokevirtual java.lang.StringBuilder.length:()I
iconst_1
isub
invokevirtual java.lang.StringBuilder.substring:(II)Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lorg/graalvm/launcher/Launcher$Native;
0 35 1 jvmArgs Ljava/util/List<Ljava/lang/String;>;
3 35 2 sb Ljava/lang/StringBuilder;
5 16 3 graalVMHome Ljava/nio/file/Path;
9 14 4 entry Ljava/lang/String;
10 14 8 resolved Ljava/nio/file/Path;
17 35 3 classpathFromArgs Ljava/lang/String;
18 35 4 iterator Ljava/util/Iterator<Ljava/lang/String;>;
20 28 5 jvmArg Ljava/lang/String;
Signature: (Ljava/util/List<Ljava/lang/String;>;)Ljava/lang/String;
MethodParameters:
Name Flags
jvmArgs
private void exec(java.nio.file.Path, java.util.List<java.lang.String>);
descriptor: (Ljava/nio/file/Path;Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.launcher.Launcher$Native.$assertionsDisabled:Z
ifne 1
invokestatic org.graalvm.launcher.Launcher.isAOT:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
invokevirtual org.graalvm.launcher.Launcher.isVerbose:()Z
ifeq 4
2: aload 0
aload 1
aload 2
invokevirtual org.graalvm.launcher.Launcher$Native.formatExec:(Ljava/nio/file/Path;Ljava/util/List;)Ljava/lang/StringBuilder;
astore 3
start local 3 3: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
getfield org.graalvm.launcher.Launcher.err:Ljava/io/PrintStream;
aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
end local 3 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.List.size:()I
iconst_1
iadd
anewarray java.lang.String
astore 3
start local 3 5: iconst_0
istore 4
start local 4 6: aload 1
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
astore 5
start local 5 7: aload 5
ifnonnull 9
8: aload 0
getfield org.graalvm.launcher.Launcher$Native.this$0:Lorg/graalvm/launcher/Launcher;
ldc "Cannot determine execute filename from path %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual org.graalvm.launcher.Launcher.abort:(Ljava/lang/String;)Lorg/graalvm/launcher/Launcher$AbortException;
athrow
9: StackMap locals: java.lang.String[] int java.nio.file.Path
StackMap stack:
aload 3
iload 4
iinc 4 1
aload 5
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
10: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 13
StackMap locals: org.graalvm.launcher.Launcher$Native java.nio.file.Path java.util.List java.lang.String[] int java.nio.file.Path top java.util.Iterator
StackMap stack:
11: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 12: aload 3
iload 4
iinc 4 1
aload 6
aastore
end local 6 13: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
14: aload 1
aload 3
invokestatic org.graalvm.nativeimage.ProcessProperties.exec:(Ljava/nio/file/Path;[Ljava/lang/String;)V
15: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/graalvm/launcher/Launcher$Native;
0 16 1 executable Ljava/nio/file/Path;
0 16 2 command Ljava/util/List<Ljava/lang/String;>;
3 4 3 sb Ljava/lang/StringBuilder;
5 16 3 argv [Ljava/lang/String;
6 16 4 i I
7 16 5 filename Ljava/nio/file/Path;
12 13 6 arg Ljava/lang/String;
Signature: (Ljava/nio/file/Path;Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
executable
command
private java.lang.StringBuilder formatExec(java.nio.file.Path, java.util.List<java.lang.String>);
descriptor: (Ljava/nio/file/Path;Ljava/util/List;)Ljava/lang/StringBuilder;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
ldc "exec: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 3
start local 3 1: aload 3
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
2: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: org.graalvm.launcher.Launcher$Native java.nio.file.Path java.util.List java.lang.StringBuilder top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 4: aload 3
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
5: aload 3
aload 4
invokestatic org.graalvm.launcher.Launcher$ShellQuotes.quote:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aload 3
invokestatic java.lang.System.lineSeparator:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/graalvm/launcher/Launcher$Native;
0 9 1 executable Ljava/nio/file/Path;
0 9 2 command Ljava/util/List<Ljava/lang/String;>;
1 9 3 sb Ljava/lang/StringBuilder;
4 6 4 arg Ljava/lang/String;
Signature: (Ljava/nio/file/Path;Ljava/util/List<Ljava/lang/String;>;)Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
executable
command
}
SourceFile: "Launcher.java"
NestHost: org.graalvm.launcher.Launcher
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
protected final AbortException = org.graalvm.launcher.Launcher$AbortException of org.graalvm.launcher.Launcher
Native = org.graalvm.launcher.Launcher$Native of org.graalvm.launcher.Launcher
private final ShellQuotes = org.graalvm.launcher.Launcher$ShellQuotes of org.graalvm.launcher.Launcher
public final OptionClass = org.graalvm.nativeimage.RuntimeOptions$OptionClass of org.graalvm.nativeimage.RuntimeOptions