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:
Ivan P Krylov 2010-08-31 03:14:00 -07:00
parent d7850a0df7
commit 5d5bcb4bca
4 changed files with 72 additions and 49 deletions

View file

@ -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) {