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.lang.String KEEP_TEMPORARY_ARGUMENT_FILES_PROPERTY_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern SAFE_SHELL_ARG;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final java.lang.String PACKAGE_OPENING_OPTIONS;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: ";:PACKAGE_OPENING_OPTIONS_IN_TEMPORARY_ARGUMENTS_FILE:;"
private static final boolean isJava8OrEarlier;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.StringBuilder
dup
ldc "test."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc Lorg/graalvm/compiler/test/SubprocessUtil;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".keepTempArgumentFiles"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putstatic org.graalvm.compiler.test.SubprocessUtil.KEEP_TEMPORARY_ARGUMENT_FILES_PROPERTY_NAME:Ljava/lang/String;
1: ldc "[A-Za-z0-9@%_\\-\\+=:,\\./]+"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.graalvm.compiler.test.SubprocessUtil.SAFE_SHELL_ARG:Ljava/util/regex/Pattern;
2: getstatic org.graalvm.compiler.serviceprovider.JavaVersionUtil.JAVA_SPEC:I
bipush 8
if_icmpgt 3
iconst_1
goto 4
StackMap locals:
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: putstatic org.graalvm.compiler.test.SubprocessUtil.isJava8OrEarlier:Z
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=0, args_size=0
0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tAssume cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/List<Ljava/lang/String;>;
public static java.lang.String quoteShellArg(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
1: ldc "\"\""
areturn
2: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.test.SubprocessUtil.SAFE_SHELL_ARG:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 1
start local 1 3: aload 1
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 5
4: aload 0
areturn
5: StackMap locals: java.util.regex.Matcher
StackMap stack:
new java.lang.StringBuilder
dup
ldc "'"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
ldc "'"
ldc "'\"'\"'"
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/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;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 arg Ljava/lang/String;
3 6 1 m Ljava/util/regex/Matcher;
MethodParameters:
Name Flags
arg
public static java.util.List<java.lang.String> withoutDebuggerArguments(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: new java.util.ArrayList
dup
aload 0
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 1: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: java.util.List java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 3: aload 2
ldc "-Xdebug"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
aload 2
ldc "-Xrunjdwp:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 5
4: aload 1
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 args Ljava/util/List<Ljava/lang/String;>;
1 7 1 result Ljava/util/List<Ljava/lang/String;>;
3 5 2 arg Ljava/lang/String;
Signature: (Ljava/util/List<Ljava/lang/String;>;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
args
public static java.util.List<java.lang.String> getPackageOpeningOptions();
descriptor: ()Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=11, args_size=0
0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 0
start local 0 1: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "opens"
aastore
dup
iconst_1
ldc "exports"
aastore
astore 1
start local 1 2: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 12
StackMap locals: java.util.List java.lang.String[] top int int java.lang.String[]
StackMap stack:
3: aload 5
iload 3
aaload
astore 2
start local 2 4: new java.lang.StringBuilder
dup
ldc "com.oracle.mxtool.junit."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 5: aload 6
ifnull 11
aload 6
invokevirtual java.lang.String.isEmpty:()Z
ifne 11
6: aload 6
invokestatic java.lang.System.lineSeparator:()Ljava/lang/String;
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
dup
astore 10
arraylength
istore 9
iconst_0
istore 8
goto 10
StackMap locals: java.util.List java.lang.String[] java.lang.String int int java.lang.String[] java.lang.String top int int java.lang.String[]
StackMap stack:
7: aload 10
iload 8
aaload
astore 7
start local 7 8: aload 0
new java.lang.StringBuilder
dup
ldc "--add-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 9: iinc 8 1
StackMap locals:
StackMap stack:
10: iload 8
iload 9
if_icmplt 7
end local 6 end local 2 11: StackMap locals: java.util.List java.lang.String[] top int int java.lang.String[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
iload 4
if_icmplt 3
13: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 14 0 result Ljava/util/List<Ljava/lang/String;>;
2 14 1 actions [Ljava/lang/String;
4 11 2 action Ljava/lang/String;
5 11 6 opens Ljava/lang/String;
8 9 7 value Ljava/lang/String;
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;>;
public static boolean isJavaAgentAttached(java.util.function.Predicate<java.lang.String>);
descriptor: (Ljava/util/function/Predicate;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic org.graalvm.compiler.test.SubprocessUtil.getVMCommandLine:()Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
1: invokedynamic test()Ljava/util/function/Predicate;
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;)Z
org/graalvm/compiler/test/SubprocessUtil.lambda$0(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
org/graalvm/compiler/test/SubprocessUtil.lambda$1(Ljava/lang/String;)Ljava/lang/String; (6)
(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: aload 0
invokeinterface java.util.stream.Stream.anyMatch:(Ljava/util/function/Predicate;)Z
4: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 agentPredicate Ljava/util/function/Predicate<Ljava/lang/String;>;
Signature: (Ljava/util/function/Predicate<Ljava/lang/String;>;)Z
MethodParameters:
Name Flags
agentPredicate
public static boolean isJavaAgentAttached();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokedynamic test()Ljava/util/function/Predicate;
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;)Z
org/graalvm/compiler/test/SubprocessUtil.lambda$2(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokestatic org.graalvm.compiler.test.SubprocessUtil.isJavaAgentAttached:(Ljava/util/function/Predicate;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static boolean isJaCoCoAttached();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokedynamic test()Ljava/util/function/Predicate;
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;)Z
org/graalvm/compiler/test/SubprocessUtil.lambda$3(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokestatic org.graalvm.compiler.test.SubprocessUtil.isJavaAgentAttached:(Ljava/util/function/Predicate;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static org.graalvm.compiler.test.SubprocessUtil$Subprocess java(java.util.List<java.lang.String>, java.lang.String[]);
descriptor: (Ljava/util/List;[Ljava/lang/String;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic org.graalvm.compiler.test.SubprocessUtil.java:(Ljava/util/List;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 vmArgs Ljava/util/List<Ljava/lang/String;>;
0 1 1 mainClassAndArgs [Ljava/lang/String;
Exceptions:
throws java.io.IOException, java.lang.InterruptedException
Signature: (Ljava/util/List<Ljava/lang/String;>;[Ljava/lang/String;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
MethodParameters:
Name Flags
vmArgs
mainClassAndArgs
public static org.graalvm.compiler.test.SubprocessUtil$Subprocess java(java.util.List<java.lang.String>, java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aload 1
invokestatic org.graalvm.compiler.test.SubprocessUtil.javaHelper:(Ljava/util/List;Ljava/util/Map;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 vmArgs Ljava/util/List<Ljava/lang/String;>;
0 1 1 mainClassAndArgs Ljava/util/List<Ljava/lang/String;>;
Exceptions:
throws java.io.IOException, java.lang.InterruptedException
Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
MethodParameters:
Name Flags
vmArgs
mainClassAndArgs
public static org.graalvm.compiler.test.SubprocessUtil$Subprocess java(java.util.List<java.lang.String>, java.util.Map<java.lang.String, java.lang.String>, java.lang.String[]);
descriptor: (Ljava/util/List;Ljava/util/Map;[Ljava/lang/String;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic org.graalvm.compiler.test.SubprocessUtil.java:(Ljava/util/List;Ljava/util/Map;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 vmArgs Ljava/util/List<Ljava/lang/String;>;
0 1 1 env Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 1 2 mainClassAndArgs [Ljava/lang/String;
Exceptions:
throws java.io.IOException, java.lang.InterruptedException
Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;[Ljava/lang/String;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
MethodParameters:
Name Flags
vmArgs
env
mainClassAndArgs
public static org.graalvm.compiler.test.SubprocessUtil$Subprocess java(java.util.List<java.lang.String>, java.util.Map<java.lang.String, java.lang.String>, java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;Ljava/util/Map;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic org.graalvm.compiler.test.SubprocessUtil.javaHelper:(Ljava/util/List;Ljava/util/Map;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 vmArgs Ljava/util/List<Ljava/lang/String;>;
0 1 1 env Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 1 2 mainClassAndArgs Ljava/util/List<Ljava/lang/String;>;
Exceptions:
throws java.io.IOException, java.lang.InterruptedException
Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
MethodParameters:
Name Flags
vmArgs
env
mainClassAndArgs
private static org.graalvm.compiler.test.SubprocessUtil$Subprocess javaHelper(java.util.List<java.lang.String>, java.util.Map<java.lang.String, java.lang.String>, java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;Ljava/util/Map;Ljava/util/List;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=12, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
aload 0
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 3
start local 3 1: aconst_null
astore 4
start local 4 2: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 13
StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 4: aload 5
ldc ";:PACKAGE_OPENING_OPTIONS_IN_TEMPORARY_ARGUMENTS_FILE:;"
if_acmpne 12
5: aload 4
ifnonnull 13
6: invokestatic org.graalvm.compiler.test.SubprocessUtil.getPackageOpeningOptions:()Ljava/util/List;
astore 7
start local 7 7: aload 7
invokeinterface java.util.List.isEmpty:()Z
ifne 13
8: ldc "."
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
ldc "package-opening-options-arguments-file"
ldc ".txt"
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createTempFile:(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
astore 4
9: aload 4
aload 7
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.write:(Ljava/nio/file/Path;Ljava/lang/Iterable;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
pop
10: aload 3
new java.lang.StringBuilder
dup
ldc "@"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 11: goto 13
12: StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.String java.util.Iterator
StackMap stack:
aload 3
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 13: StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
14: aload 3
aload 2
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
15: new java.lang.ProcessBuilder
dup
aload 3
invokespecial java.lang.ProcessBuilder.<init>:(Ljava/util/List;)V
astore 5
start local 5 16: aload 1
ifnull 19
17: aload 5
invokevirtual java.lang.ProcessBuilder.environment:()Ljava/util/Map;
astore 6
start local 6 18: aload 6
aload 1
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
end local 6 19: StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.ProcessBuilder
StackMap stack:
aload 5
iconst_1
invokevirtual java.lang.ProcessBuilder.redirectErrorStream:(Z)Ljava/lang/ProcessBuilder;
pop
20: aload 5
invokevirtual java.lang.ProcessBuilder.start:()Ljava/lang/Process;
astore 6
start local 6 21: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 6
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 7
start local 7 22: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 9
start local 9 23: goto 25
start local 8 24: StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.ProcessBuilder java.lang.Process java.io.BufferedReader java.lang.String java.util.List
StackMap stack:
aload 9
aload 8
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 25: StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.ProcessBuilder java.lang.Process java.io.BufferedReader top java.util.List
StackMap stack:
aload 7
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 8
start local 8 26: ifnonnull 24
27: new org.graalvm.compiler.test.SubprocessUtil$Subprocess
dup
aload 3
aload 1
aload 6
invokevirtual java.lang.Process.waitFor:()I
aload 9
invokespecial org.graalvm.compiler.test.SubprocessUtil$Subprocess.<init>:(Ljava/util/List;Ljava/util/Map;ILjava/util/List;)V
astore 11
28: aload 4
ifnull 31
29: getstatic org.graalvm.compiler.test.SubprocessUtil.KEEP_TEMPORARY_ARGUMENT_FILES_PROPERTY_NAME:Ljava/lang/String;
invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
ifne 31
30: aload 4
invokestatic java.nio.file.Files.delete:(Ljava/nio/file/Path;)V
31: StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.ProcessBuilder java.lang.Process java.io.BufferedReader java.lang.String java.util.List top org.graalvm.compiler.test.SubprocessUtil$Subprocess
StackMap stack:
aload 11
areturn
end local 9 end local 8 end local 7 end local 6 32: StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.ProcessBuilder
StackMap stack: java.lang.Throwable
astore 10
33: aload 4
ifnull 36
34: getstatic org.graalvm.compiler.test.SubprocessUtil.KEEP_TEMPORARY_ARGUMENT_FILES_PROPERTY_NAME:Ljava/lang/String;
invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
ifne 36
35: aload 4
invokestatic java.nio.file.Files.delete:(Ljava/nio/file/Path;)V
36: StackMap locals: java.util.List java.util.Map java.util.List java.util.List java.nio.file.Path java.lang.ProcessBuilder top top top top java.lang.Throwable
StackMap stack:
aload 10
athrow
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 37 0 vmArgs Ljava/util/List<Ljava/lang/String;>;
0 37 1 env Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 37 2 mainClassAndArgs Ljava/util/List<Ljava/lang/String;>;
1 37 3 command Ljava/util/List<Ljava/lang/String;>;
2 37 4 packageOpeningOptionsArgumentsFile Ljava/nio/file/Path;
4 13 5 vmArg Ljava/lang/String;
7 11 7 packageOpeningOptions Ljava/util/List<Ljava/lang/String;>;
16 37 5 processBuilder Ljava/lang/ProcessBuilder;
18 19 6 processBuilderEnv Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
21 32 6 process Ljava/lang/Process;
22 32 7 stdout Ljava/io/BufferedReader;
24 25 8 line Ljava/lang/String;
26 32 8 line Ljava/lang/String;
23 32 9 output Ljava/util/List<Ljava/lang/String;>;
Exception table:
from to target type
20 28 32 any
Exceptions:
throws java.io.IOException, java.lang.InterruptedException
Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;)Lorg/graalvm/compiler/test/SubprocessUtil$Subprocess;
MethodParameters:
Name Flags
vmArgs
env
mainClassAndArgs
private static boolean hasArg(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "-cp"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 1
aload 0
ldc "-classpath"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: StackMap locals:
StackMap stack:
iconst_1
ireturn
2: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.test.SubprocessUtil.isJava8OrEarlier:Z
ifne 14
3: aload 0
ldc "--version"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
4: aload 0
ldc "--show-version"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
5: aload 0
ldc "--dry-run"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
6: aload 0
ldc "--disable-@files"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
7: aload 0
ldc "--dry-run"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
8: aload 0
ldc "--help"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
9: aload 0
ldc "--help-extra"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
10: StackMap locals:
StackMap stack:
iconst_0
ireturn
11: StackMap locals:
StackMap stack:
aload 0
ldc "--"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 14
12: aload 0
bipush 61
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpne 13
iconst_1
ireturn
StackMap locals:
StackMap stack:
13: iconst_0
ireturn
14: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 optionName Ljava/lang/String;
MethodParameters:
Name Flags
optionName
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 12
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 8
4: getstatic org.graalvm.compiler.test.SubprocessUtil.isJava8OrEarlier:Z
ifne 5
aload 2
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 64
if_icmpeq 6
5: StackMap locals: java.lang.String
StackMap stack:
iload 1
ireturn
6: StackMap locals:
StackMap stack:
iinc 1 1
7: goto 12
StackMap locals:
StackMap stack:
8: aload 2
invokestatic org.graalvm.compiler.test.SubprocessUtil.hasArg:(Ljava/lang/String;)Z
ifeq 11
9: iinc 1 2
10: goto 12
11: StackMap locals:
StackMap stack:
iinc 1 1
end local 2 12: StackMap locals:
StackMap stack:
iload 1
aload 0
invokeinterface java.util.List.size:()I
if_icmplt 2
13: 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 14 0 commandLine Ljava/util/List<Ljava/lang/String;>;
1 14 1 i I
3 12 2 s Ljava/lang/String;
Signature: (Ljava/util/List<Ljava/lang/String;>;)I
MethodParameters:
Name Flags
commandLine
private static boolean lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "-javaagent:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 args Ljava/lang/String;
private static java.lang.String lambda$1(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "-javaagent:"
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
private static boolean lambda$2(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 javaAgentValue Ljava/lang/String;
private static boolean lambda$3(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
ldc "jacoco"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
}
SourceFile: "SubprocessUtil.java"
NestMembers:
org.graalvm.compiler.test.SubprocessUtil$Subprocess
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public Subprocess = org.graalvm.compiler.test.SubprocessUtil$Subprocess of org.graalvm.compiler.test.SubprocessUtil