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: .line 71
            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: .line 72
            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: .line 73
            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: .line 71
      StackMap locals:
      StackMap stack: java.util.List
            putstatic org.graalvm.compiler.test.SubprocessUtil.JVM_OPTIONS_WITH_ONE_ARG:Ljava/util/List;
         5: .line 73
            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 // org.graalvm.compiler.test.SubprocessUtil this
         0: .line 36
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 37
            return
        end local 0 // org.graalvm.compiler.test.SubprocessUtil this
      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: .line 46
            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 /* processArgsFile */
        start local 0 // java.lang.String processArgsFile
         1: .line 47
            aload 0 /* processArgsFile */
            ifnull 5
         2: .line 49
            new java.io.File
            dup
            aload 0 /* processArgsFile */
            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: .line 50
      StackMap locals: java.lang.String
      StackMap stack: java.io.IOException
            pop
         5: .line 53
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        end local 0 // java.lang.String processArgsFile
      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: .line 62
            invokestatic org.graalvm.compiler.test.SubprocessUtil.getProcessCommandLine:()Ljava/util/List;
            astore 0 /* args */
        start local 0 // java.util.List args
         1: .line 63
            aload 0 /* args */
            ifnonnull 3
         2: .line 64
            aconst_null
            areturn
         3: .line 66
      StackMap locals: java.util.List
      StackMap stack:
            aload 0 /* args */
            invokestatic org.graalvm.compiler.test.SubprocessUtil.findMainClassIndex:(Ljava/util/List;)I
            istore 1 /* index */
        start local 1 // int index
         4: .line 67
            aload 0 /* args */
            iconst_0
            iload 1 /* index */
            invokeinterface java.util.List.subList:(II)Ljava/util/List;
            areturn
        end local 1 // int index
        end local 0 // java.util.List args
      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 // java.util.List commandLine
         0: .line 76
            iconst_1
            istore 1 /* i */
        start local 1 // int i
         1: .line 78
            goto 9
         2: .line 79
      StackMap locals: int
      StackMap stack:
            aload 0 /* commandLine */
            iload 1 /* i */
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast java.lang.String
            astore 2 /* s */
        start local 2 // java.lang.String s
         3: .line 80
            aload 2 /* s */
            iconst_0
            invokevirtual java.lang.String.charAt:(I)C
            bipush 45
            if_icmpeq 5
         4: .line 81
            iload 1 /* i */
            ireturn
         5: .line 82
      StackMap locals: java.lang.String
      StackMap stack:
            getstatic org.graalvm.compiler.test.SubprocessUtil.JVM_OPTIONS_WITH_ONE_ARG:Ljava/util/List;
            aload 2 /* s */
            invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
            ifeq 8
         6: .line 83
            iinc 1 /* i */ 2
         7: .line 84
            goto 9
         8: .line 85
      StackMap locals:
      StackMap stack:
            iinc 1 /* i */ 1
        end local 2 // java.lang.String s
         9: .line 78
      StackMap locals:
      StackMap stack:
            iload 1 /* i */
            aload 0 /* commandLine */
            invokeinterface java.util.List.size:()I
            if_icmplt 2
        10: .line 88
            new java.lang.InternalError
            dup
            invokespecial java.lang.InternalError.<init>:()V
            athrow
        end local 1 // int i
        end local 0 // java.util.List commandLine
      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"