1.1 --- a/src/share/vm/runtime/arguments.cpp Fri Aug 27 21:31:15 2010 -0700 1.2 +++ b/src/share/vm/runtime/arguments.cpp Tue Aug 31 03:14:00 2010 -0700 1.3 @@ -2855,6 +2855,13 @@ 1.4 CommandLineFlags::printFlags(); 1.5 vm_exit(0); 1.6 } 1.7 + 1.8 +#ifndef PRODUCT 1.9 + if (match_option(option, "-XX:+PrintFlagsWithComments", &tail)) { 1.10 + CommandLineFlags::printFlags(true); 1.11 + vm_exit(0); 1.12 + } 1.13 +#endif 1.14 } 1.15 1.16 if (IgnoreUnrecognizedVMOptions) {