VM_Controller.addOptCompilerOption("opt"+arg);  VM.sysWriteln("vm: nonadaptive configuration; -X:recomp is not a legal prefix in this configuration"); VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG);
if (VM.BuildForAdaptiveSystem) { VM_Controller.addOptCompilerOption("opt"+arg); } else { VM.sysWriteln("vm: nonadaptive configuration; -X:recomp is not a legal prefix in this configuration"); VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG); }
  static void earlyProcessCommandLineArguments() {    for (int i = 0; i<app_name_pos; i++) {      String arg = args[i];      int type = arg_types[i];      if (type == INVALID_ARG) continue;      Prefix p = findPrefix(type);      if (DEBUG) VM.sysWrite(" VM_CommandLineArgs.earlyProcessCLA("+p.value+arg+")\n");      switch (type) {      case CLASSPATH_ARG:        // arguments of the form "-classpath a:b:c" or "-cp a:b:c"        // We are experimentally processing this early so that we can have the        // Application class loader complete for when         // ClassLoader$StaticData's initializer is run.        VM_ClassLoader.stashApplicationRepositories(arg);        break;      case JAR_ARG:        // maybe also load classes on the classpath list in the manifest        VM_ClassLoader.stashApplicationRepositories(arg);        break;      case VERBOSE_CLS_ARG:        VM.verboseClassLoading = true;        break;     case VERBOSE_JNI_ARG:        VM.verboseJNI = true;        break;        // -------------------------------------------------//        // Options needed by VM_Scheduler to boot correctly //        // -------------------------------------------------//        case CPUAFFINITY_ARG:        int cpuAffinity = 0;        try { cpuAffinity = primitiveParseInt(arg); }        catch (NumberFormatException e) { cpuAffinity = -1; }        if (cpuAffinity < 0) {          VM.sysWriteln("vm: ", p.value, " needs a cpu number (0..N-1), but found '", arg, "'");          VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG);        }        if (VM.singleVirtualProcessor && cpuAffinity != 0) {           VM.sysWriteln("vm: I can not support multiple processors; check the -X:singleVirtualProcessor flag");          VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG);        }        VM_Scheduler.cpuAffinity = cpuAffinity;        break;      case PROCESSORS_ARG: // "-X:processors=<n>" or "-X:processors=all"        int nProcs;        if (arg.equals("all")) {          /* Assume VM_SysCall.sysNumProcessors() always returns a sane             value.  */          nProcs = VM_SysCall.sysNumProcessors();        } else {          nProcs = primitiveParseInt(arg);        }        if (nProcs < 1 || nProcs > (VM_Scheduler.MAX_PROCESSORS-1)) {          VM.sysWrite("vm: ", p.value, " needs an argument between 1 and ");          VM.sysWriteln(VM_Scheduler.MAX_PROCESSORS - 1,                         " (inclusive), but found ", arg);          VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG);        }        if (VM.singleVirtualProcessor && nProcs != 1) {          VM.sysWriteln("vm: I can not support multiple processors; check the -X:singleVirtualProcessor flag");          VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG);        }        VM_Scheduler.numProcessors = nProcs;        break;        // -------------------------------------------------------------------        // GC options        // -------------------------------------------------------------------      case GC_HELP_ARG:  // -X:gc passed 'help' as an option        MM_Interface.processCommandLineArg("help");        break;      case GC_ARG: // "-X:gc:arg" pass 'arg' as an option        MM_Interface.processCommandLineArg(arg);        break;                // ----------------------------------------------------        // Access initial runtime compiler (may be baseline or optimizing).        // ----------------------------------------------------      case IRC_HELP_ARG:        VM_RuntimeCompiler.processCommandLineArg("-X:irc:", "help");        break;      case IRC_ARG: // "-X:irc:arg"; pass 'arg' as an option        VM_RuntimeCompiler.processCommandLineArg("-X:irc:", arg);        break;        // --------------------------------------------------------------------        // Access adaptive system's recompilation compilers        // Currently this means the opt compiler, but in general we could be        // talking to several different compilers used by AOS for recompilation.        // --------------------------------------------------------------------      case RECOMP_HELP_ARG:        //-#if RVM_WITH_ADAPTIVE_SYSTEM        VM_Controller.addOptCompilerOption("opt:help");        //-#else        VM.sysWriteln("vm: nonadaptive configuration; -X:recomp is not a legal prefix in this configuration");        VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG);        //-#endif        break;      case RECOMP_ARG:        // "-X:recomp[?]:arg" process as 'opt[?]:arg' to opt        // Note arg actually includes the optional opt level and :        //-#if RVM_WITH_ADAPTIVE_SYSTEM        VM_Controller.addOptCompilerOption("opt"+arg);        //-#else        VM.sysWriteln("vm: nonadaptive configuration; -X:recomp is not a legal prefix in this configuration");        VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG);        //-#endif        break;        // -------------------------------------------------------------------        // Access adaptive optimization system        // -------------------------------------------------------------------      case AOS_HELP_ARG:  // -X:aos passed 'help' as an option        //-#if RVM_WITH_ADAPTIVE_SYSTEM        VM_Controller.processCommandLineArg("help");        //-#else        VM.sysWrite("vm: nonadaptive configuration; -X:aos is not a legal prefix in this configuration\n");        VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG);        //-#endif        break;      case AOS_ARG: // "-X:aos:arg" pass 'arg' as an option        //-#if RVM_WITH_ADAPTIVE_SYSTEM        VM_Controller.processCommandLineArg(arg);        //-#else        VM.sysWrite("vm: nonadaptive configuration; -X:aos is not a legal prefix in this configuration\n");        VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG);        //-#endif        break;        // ----------------------------------------------------        // Access baseline compiler        // ----------------------------------------------------      case BASE_HELP_ARG:        VM_BaselineOptions.printHelp("-X:base:");        break;      case BASE_ARG: // "-X:base:arg"; pass 'arg' as an option        VM_BaselineCompiler.processCommandLineArg(p.value,arg);        break;        // ----------------------------------------------------        // Access all 'logical' optimizing compilers        // (both irc and recomp compilers)        // ----------------------------------------------------      case OPT_HELP_ARG:        if (VM.BuildForAdaptiveSystem)          VM_RuntimeCompiler.processOptCommandLineArg("-X:opt:","help");        else {          VM.sysWriteln("vm: You are not using a system that includes the optimizing compiler.");          VM.sysWriteln("  Illegal command line argument prefix '-X:opt'");          VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG);        }        break;      case OPT_ARG: // "-X:opt:arg"; pass 'arg' as an option        //-#if RVM_WITH_ADAPTIVE_SYSTEM        VM_RuntimeCompiler.processOptCommandLineArg("-X:opt:", arg);        VM_Controller.addOptCompilerOption("opt:"+arg);        //-#else        VM.sysWriteln("vm: You are not using a system that includes the optimizing compiler.");        VM.sysWriteln("  Illegal command line argument prefix '-X:opt'");        VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG);        //-#endif        break;        // -------------------------------------------------------------------        // Other arguments to the core VM        // -------------------------------------------------------------------      case VM_HELP_ARG:  // -X:vm passed 'help' as an option        VM_Options.printHelp();        break;      case VM_ARG: // "-X:vm:arg" pass 'arg' as an option        if (!VM_Options.process(arg)) {          VM.sysWriteln("Unrecognized command line argument ", p.value, arg);          VM.sysExit(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG);        }        break;      }    }  }