Mercurial > hg > truffle
comparison src/share/vm/runtime/globals.cpp @ 20568:46140919bf90
8047934: Adding new API for unlocking diagnostic argument.
Summary: New API for unlocking diagnostic argument.
Reviewed-by: dholmes, ccheung, egahlin, iklam, bdelsart
author | jiangli |
---|---|
date | Tue, 14 Oct 2014 12:09:33 -0400 |
parents | 0c48231c5c84 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20561:8e15758b2e94 | 20568:46140919bf90 |
---|---|
239 } | 239 } |
240 if (is_experimental()) { | 240 if (is_experimental()) { |
241 return UnlockExperimentalVMOptions; | 241 return UnlockExperimentalVMOptions; |
242 } | 242 } |
243 return is_unlocked_ext(); | 243 return is_unlocked_ext(); |
244 } | |
245 | |
246 void Flag::unlock_diagnostic() { | |
247 assert(is_diagnostic(), "sanity"); | |
248 _flags = Flags(_flags & ~KIND_DIAGNOSTIC); | |
244 } | 249 } |
245 | 250 |
246 // Get custom message for this locked flag, or return NULL if | 251 // Get custom message for this locked flag, or return NULL if |
247 // none is available. | 252 // none is available. |
248 void Flag::get_locked_message(char* buf, int buflen) const { | 253 void Flag::get_locked_message(char* buf, int buflen) const { |