comparison src/share/vm/runtime/globals.hpp @ 1778:eeade8e89248

Merge
author ysr
date Sat, 11 Sep 2010 11:42:09 -0700
parents 179464550c7d 6ee479178066
children 18c378513575 894b1d7c7e01
comparison
equal deleted inserted replaced
1777:179464550c7d 1778:eeade8e89248
88 88
89 struct Flag { 89 struct Flag {
90 const char *type; 90 const char *type;
91 const char *name; 91 const char *name;
92 void* addr; 92 void* addr;
93
94 NOT_PRODUCT(const char *doc;)
95
93 const char *kind; 96 const char *kind;
94 FlagValueOrigin origin; 97 FlagValueOrigin origin;
95 98
96 // points to all Flags static array 99 // points to all Flags static array
97 static Flag *flags; 100 static Flag *flags;
129 bool is_unlocker() const; 132 bool is_unlocker() const;
130 bool is_unlocked() const; 133 bool is_unlocked() const;
131 bool is_writeable() const; 134 bool is_writeable() const;
132 bool is_external() const; 135 bool is_external() const;
133 136
134 void print_on(outputStream* st); 137 void print_on(outputStream* st, bool withComments = false );
135 void print_as_flag(outputStream* st); 138 void print_as_flag(outputStream* st);
136 }; 139 };
137 140
138 // debug flags control various aspects of the VM and are global accessible 141 // debug flags control various aspects of the VM and are global accessible
139 142
209 212
210 // Returns false if name is not a command line flag. 213 // Returns false if name is not a command line flag.
211 static bool wasSetOnCmdline(const char* name, bool* value); 214 static bool wasSetOnCmdline(const char* name, bool* value);
212 static void printSetFlags(); 215 static void printSetFlags();
213 216
214 static void printFlags(); 217 static void printFlags(bool withComments = false );
215 218
216 static void verify() PRODUCT_RETURN; 219 static void verify() PRODUCT_RETURN;
217 }; 220 };
218 221
219 // use this for flags that are true by default in the debug version but 222 // use this for flags that are true by default in the debug version but
2404 "Print all VM flags before argument processing and exit VM") \ 2407 "Print all VM flags before argument processing and exit VM") \
2405 \ 2408 \
2406 product(bool, PrintFlagsFinal, false, \ 2409 product(bool, PrintFlagsFinal, false, \
2407 "Print all VM flags after argument and ergonomic processing") \ 2410 "Print all VM flags after argument and ergonomic processing") \
2408 \ 2411 \
2412 notproduct(bool, PrintFlagsWithComments, false, \
2413 "Print all VM flags with default values and descriptions and exit")\
2414 \
2409 diagnostic(bool, SerializeVMOutput, true, \ 2415 diagnostic(bool, SerializeVMOutput, true, \
2410 "Use a mutex to serialize output to tty and hotspot.log") \ 2416 "Use a mutex to serialize output to tty and hotspot.log") \
2411 \ 2417 \
2412 diagnostic(bool, DisplayVMOutput, true, \ 2418 diagnostic(bool, DisplayVMOutput, true, \
2413 "Display all VM output on the tty, independently of LogVMOutput") \ 2419 "Display all VM output on the tty, independently of LogVMOutput") \