Mercurial > hg > truffle
diff src/share/vm/runtime/arguments.cpp @ 1768:6ee479178066
6979444: add command line option to print command line flags descriptions
Summary: Implementation of a nonproduct boolean flag XX:PrintFlagsWithComments
Reviewed-by: kamg, dholmes, dsamersoff
author | ikrylov |
---|---|
date | Tue, 31 Aug 2010 03:14:00 -0700 |
parents | ebfb7c68865e |
children | 40d7b43b6fe0 |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp Fri Aug 27 21:31:15 2010 -0700 +++ b/src/share/vm/runtime/arguments.cpp Tue Aug 31 03:14:00 2010 -0700 @@ -2855,6 +2855,13 @@ CommandLineFlags::printFlags(); vm_exit(0); } + +#ifndef PRODUCT + if (match_option(option, "-XX:+PrintFlagsWithComments", &tail)) { + CommandLineFlags::printFlags(true); + vm_exit(0); + } +#endif } if (IgnoreUnrecognizedVMOptions) {