diff src/share/vm/runtime/globals.hpp @ 1702:eeade8e89248

Merge
author ysr
date Sat, 11 Sep 2010 11:42:09 -0700
parents 179464550c7d 6ee479178066
children 18c378513575 894b1d7c7e01
line wrap: on
line diff
--- a/src/share/vm/runtime/globals.hpp	Fri Sep 10 17:07:55 2010 -0700
+++ b/src/share/vm/runtime/globals.hpp	Sat Sep 11 11:42:09 2010 -0700
@@ -90,6 +90,9 @@
   const char *type;
   const char *name;
   void*       addr;
+
+  NOT_PRODUCT(const char *doc;)
+
   const char *kind;
   FlagValueOrigin origin;
 
@@ -131,7 +134,7 @@
   bool is_writeable() const;
   bool is_external() const;
 
-  void print_on(outputStream* st);
+  void print_on(outputStream* st, bool withComments = false );
   void print_as_flag(outputStream* st);
 };
 
@@ -211,7 +214,7 @@
   static bool wasSetOnCmdline(const char* name, bool* value);
   static void printSetFlags();
 
-  static void printFlags();
+  static void printFlags(bool withComments = false );
 
   static void verify() PRODUCT_RETURN;
 };
@@ -2406,6 +2409,9 @@
   product(bool, PrintFlagsFinal, false,                                     \
          "Print all VM flags after argument and ergonomic processing")      \
                                                                             \
+  notproduct(bool, PrintFlagsWithComments, false,                           \
+         "Print all VM flags with default values and descriptions and exit")\
+                                                                            \
   diagnostic(bool, SerializeVMOutput, true,                                 \
          "Use a mutex to serialize output to tty and hotspot.log")          \
                                                                             \