public final class org.graalvm.compiler.test.SubprocessUtil
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.test.SubprocessUtil
super_class: java.lang.Object
{
public static final java.util.List<java.lang.String> JVM_OPTIONS_WITH_ONE_ARG;
descriptor: Ljava/util/List;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: ldc "java.specification.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
ldc "1.9"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifge 2
iconst_2
anewarray java.lang.String
dup
iconst_0
1: ldc "-cp"
aastore
dup
iconst_1
ldc "-classpath"
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
goto 4
StackMap locals:
StackMap stack:
2: bipush 8
anewarray java.lang.String
dup
iconst_0
3: ldc "-cp"
aastore
dup
iconst_1
ldc "-classpath"
aastore
dup
iconst_2
ldc "-mp"
aastore
dup
iconst_3
ldc "-modulepath"
aastore
dup
iconst_4
ldc "-upgrademodulepath"
aastore
dup
iconst_5
ldc "-addmods"
aastore
dup
bipush 6
ldc "-m"
aastore
dup
bipush 7
ldc "-limitmods"
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
4: StackMap locals:
StackMap stack: java.util.List
putstatic org.graalvm.compiler.test.SubprocessUtil.JVM_OPTIONS_WITH_ONE_ARG:Ljava/util/List;
5: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/test/SubprocessUtil;
public static java.util.List<java.lang.String> getProcessCommandLine();
descriptor: ()Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: invokestatic java.lang.System.getenv:()Ljava/util/Map;
ldc "MX_SUBPROCESS_COMMAND_FILE"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 0
start local 0 1: aload 0
ifnull 5
2: new java.io.File
dup
aload 0
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
invokestatic java.nio.file.Files.readAllLines:(Ljava/nio/file/Path;)Ljava/util/List;
3: areturn
4: StackMap locals: java.lang.String
StackMap stack: java.io.IOException
pop
5: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 processArgsFile Ljava/lang/String;
Exception table:
from to target type
2 3 4 Class java.io.IOException
Signature: ()Ljava/util/List<Ljava/lang/String;>;
public static java.util.List<java.lang.String> getVMCommandLine();
descriptor: ()Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=0
0: invokestatic org.graalvm.compiler.test.SubprocessUtil.getProcessCommandLine:()Ljava/util/List;
astore 0
start local 0 1: aload 0
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.util.List
StackMap stack:
aload 0
invokestatic org.graalvm.compiler.test.SubprocessUtil.findMainClassIndex:(Ljava/util/List;)I
istore 1
start local 1 4: aload 0
iconst_0
iload 1
invokeinterface java.util.List.subList:(II)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 5 0 args Ljava/util/List<Ljava/lang/String;>;
4 5 1 index I
Signature: ()Ljava/util/List<Ljava/lang/String;>;
private static int findMainClassIndex(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: goto 9
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 3: aload 2
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 45
if_icmpeq 5
4: iload 1
ireturn
5: StackMap locals: java.lang.String
StackMap stack:
getstatic org.graalvm.compiler.test.SubprocessUtil.JVM_OPTIONS_WITH_ONE_ARG:Ljava/util/List;
aload 2
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifeq 8
6: iinc 1 2
7: goto 9
8: StackMap locals:
StackMap stack:
iinc 1 1
end local 2 9: StackMap locals:
StackMap stack:
iload 1
aload 0
invokeinterface java.util.List.size:()I
if_icmplt 2
10: new java.lang.InternalError
dup
invokespecial java.lang.InternalError.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 commandLine Ljava/util/List<Ljava/lang/String;>;
1 11 1 i I
3 9 2 s Ljava/lang/String;
Signature: (Ljava/util/List<Ljava/lang/String;>;)I
MethodParameters:
Name Flags
commandLine
}
SourceFile: "SubprocessUtil.java"