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 } |