hotspot/src/share/vm/runtime/arguments.cpp
changeset 27244 a2bd9d3112d4
parent 27166 4ce0d93a8287
child 27245 6d08a994e466
equal deleted inserted replaced
27169:59d46464ef22 27244:a2bd9d3112d4
  3737   // If flag "-XX:Flags=flags-file" is used it will be the first option to be processed.
  3737   // If flag "-XX:Flags=flags-file" is used it will be the first option to be processed.
  3738   const char* hotspotrc = ".hotspotrc";
  3738   const char* hotspotrc = ".hotspotrc";
  3739   bool settings_file_specified = false;
  3739   bool settings_file_specified = false;
  3740   bool needs_hotspotrc_warning = false;
  3740   bool needs_hotspotrc_warning = false;
  3741 
  3741 
  3742   ArgumentsExt::process_options(args);
       
  3743 
       
  3744   const char* flags_file;
  3742   const char* flags_file;
  3745   int index;
  3743   int index;
  3746   for (index = 0; index < args->nOptions; index++) {
  3744   for (index = 0; index < args->nOptions; index++) {
  3747     const JavaVMOption *option = args->options + index;
  3745     const JavaVMOption *option = args->options + index;
       
  3746     if (ArgumentsExt::process_options(option)) {
       
  3747       continue;
       
  3748     }
  3748     if (match_option(option, "-XX:Flags=", &tail)) {
  3749     if (match_option(option, "-XX:Flags=", &tail)) {
  3749       flags_file = tail;
  3750       flags_file = tail;
  3750       settings_file_specified = true;
  3751       settings_file_specified = true;
       
  3752       continue;
  3751     }
  3753     }
  3752     if (match_option(option, "-XX:+PrintVMOptions", &tail)) {
  3754     if (match_option(option, "-XX:+PrintVMOptions", &tail)) {
  3753       PrintVMOptions = true;
  3755       PrintVMOptions = true;
       
  3756       continue;
  3754     }
  3757     }
  3755     if (match_option(option, "-XX:-PrintVMOptions", &tail)) {
  3758     if (match_option(option, "-XX:-PrintVMOptions", &tail)) {
  3756       PrintVMOptions = false;
  3759       PrintVMOptions = false;
       
  3760       continue;
  3757     }
  3761     }
  3758     if (match_option(option, "-XX:+IgnoreUnrecognizedVMOptions", &tail)) {
  3762     if (match_option(option, "-XX:+IgnoreUnrecognizedVMOptions", &tail)) {
  3759       IgnoreUnrecognizedVMOptions = true;
  3763       IgnoreUnrecognizedVMOptions = true;
       
  3764       continue;
  3760     }
  3765     }
  3761     if (match_option(option, "-XX:-IgnoreUnrecognizedVMOptions", &tail)) {
  3766     if (match_option(option, "-XX:-IgnoreUnrecognizedVMOptions", &tail)) {
  3762       IgnoreUnrecognizedVMOptions = false;
  3767       IgnoreUnrecognizedVMOptions = false;
       
  3768       continue;
  3763     }
  3769     }
  3764     if (match_option(option, "-XX:+PrintFlagsInitial", &tail)) {
  3770     if (match_option(option, "-XX:+PrintFlagsInitial", &tail)) {
  3765       CommandLineFlags::printFlags(tty, false);
  3771       CommandLineFlags::printFlags(tty, false);
  3766       vm_exit(0);
  3772       vm_exit(0);
  3767     }
  3773     }
  3779           MemTracker::init();
  3785           MemTracker::init();
  3780         }
  3786         }
  3781       } else {
  3787       } else {
  3782         vm_exit_during_initialization("Syntax error, expecting -XX:NativeMemoryTracking=[off|summary|detail]", NULL);
  3788         vm_exit_during_initialization("Syntax error, expecting -XX:NativeMemoryTracking=[off|summary|detail]", NULL);
  3783       }
  3789       }
       
  3790       continue;
  3784     }
  3791     }
  3785 #endif
  3792 #endif
  3786 
  3793 
  3787 
  3794 
  3788 #ifndef PRODUCT
  3795 #ifndef PRODUCT