mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
6979444: add command line option to print command line flags descriptions
Implementation of a nonproduct boolean flag XX:PrintFlagsWithComments Reviewed-by: kamg, dholmes, dsamersoff
This commit is contained in:
parent
d7850a0df7
commit
5d5bcb4bca
4 changed files with 72 additions and 49 deletions
|
@ -2855,6 +2855,13 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
|
|||
CommandLineFlags::printFlags();
|
||||
vm_exit(0);
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
if (match_option(option, "-XX:+PrintFlagsWithComments", &tail)) {
|
||||
CommandLineFlags::printFlags(true);
|
||||
vm_exit(0);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (IgnoreUnrecognizedVMOptions) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue