comparison src/share/vm/runtime/globals.hpp @ 5947:80fe40862b02

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 Contributed-by: james.melvin@oracle.com
author jmelvin
date Tue, 20 Mar 2012 16:46:39 -0400
parents 2d503de963b3
children fc9d8850ab8b
comparison
equal deleted inserted replaced
5946:3d7ea1dbe0de 5947:80fe40862b02
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