--- old/src/share/vm/runtime/arguments.cpp Mon Aug 30 03:51:10 2010 +++ new/src/share/vm/runtime/arguments.cpp Mon Aug 30 03:51:08 2010 @@ -2830,6 +2830,13 @@ CommandLineFlags::printFlags(); vm_exit(0); } + +#ifndef PRODUCT + if (match_option(option, "-XX:+PrintFlagsWithComments", &tail)) { + CommandLineFlags::printFlags(true); + vm_exit(0); + } +#endif } if (IgnoreUnrecognizedVMOptions) {