comparison src/share/vm/runtime/globals.hpp @ 3499:0777128def78

7144328: Improper commandlines for -XX:+-UnlockCommercialFeatures require proper warning/error messages Summary: Provide custom error messages for locked commercial feature options which are not first unlocked. Reviewed-by: dcubed, jcoomes, kamg, dholmes
author jmelvin
date Thu, 22 Mar 2012 17:27:09 -0400
parents cfdfbeac0a5b
children a0c4bf029c0f 30fd0e13dd48
comparison
equal deleted inserted replaced
316:f35f475d316a 317:878da3077208
220 static Flag *flags; 220 static Flag *flags;
221 221
222 // number of flags 222 // number of flags
223 static size_t numFlags; 223 static size_t numFlags;
224 224
225 static Flag* find_flag(char* name, size_t length); 225 static Flag* find_flag(char* name, size_t length, bool allow_locked = false);
226 226
227 bool is_bool() const { return strcmp(type, "bool") == 0; } 227 bool is_bool() const { return strcmp(type, "bool") == 0; }
228 bool get_bool() const { return *((bool*) addr); } 228 bool get_bool() const { return *((bool*) addr); }
229 void set_bool(bool value) { *((bool*) addr) = value; } 229 void set_bool(bool value) { *((bool*) addr) = value; }
230 230
256 256
257 bool is_unlocker_ext() const; 257 bool is_unlocker_ext() const;
258 bool is_unlocked_ext() const; 258 bool is_unlocked_ext() const;
259 bool is_writeable_ext() const; 259 bool is_writeable_ext() const;
260 bool is_external_ext() const; 260 bool is_external_ext() const;
261
262 void get_locked_message(char*, int) const;
263 void get_locked_message_ext(char*, int) const;
261 264
262 void print_on(outputStream* st, bool withComments = false ); 265 void print_on(outputStream* st, bool withComments = false );
263 void print_as_flag(outputStream* st); 266 void print_as_flag(outputStream* st);
264 }; 267 };
265 268