1.1 --- a/src/share/vm/runtime/globals.hpp Fri Aug 27 21:31:15 2010 -0700 1.2 +++ b/src/share/vm/runtime/globals.hpp Tue Aug 31 03:14:00 2010 -0700 1.3 @@ -90,6 +90,9 @@ 1.4 const char *type; 1.5 const char *name; 1.6 void* addr; 1.7 + 1.8 + NOT_PRODUCT(const char *doc;) 1.9 + 1.10 const char *kind; 1.11 FlagValueOrigin origin; 1.12 1.13 @@ -131,7 +134,7 @@ 1.14 bool is_writeable() const; 1.15 bool is_external() const; 1.16 1.17 - void print_on(outputStream* st); 1.18 + void print_on(outputStream* st, bool withComments = false ); 1.19 void print_as_flag(outputStream* st); 1.20 }; 1.21 1.22 @@ -211,7 +214,7 @@ 1.23 static bool wasSetOnCmdline(const char* name, bool* value); 1.24 static void printSetFlags(); 1.25 1.26 - static void printFlags(); 1.27 + static void printFlags(bool withComments = false ); 1.28 1.29 static void verify() PRODUCT_RETURN; 1.30 }; 1.31 @@ -2406,6 +2409,9 @@ 1.32 product(bool, PrintFlagsFinal, false, \ 1.33 "Print all VM flags after argument and ergonomic processing") \ 1.34 \ 1.35 + notproduct(bool, PrintFlagsWithComments, false, \ 1.36 + "Print all VM flags with default values and descriptions and exit")\ 1.37 + \ 1.38 diagnostic(bool, SerializeVMOutput, true, \ 1.39 "Use a mutex to serialize output to tty and hotspot.log") \ 1.40 \