Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/runtime/globals.cpp Wed Jan 08 08:34:02 2014 +0100 +++ b/src/share/vm/runtime/globals.cpp Tue Oct 14 12:09:33 2014 -0400 @@ -243,6 +243,11 @@ return is_unlocked_ext(); } +void Flag::unlock_diagnostic() { + assert(is_diagnostic(), "sanity"); + _flags = Flags(_flags & ~KIND_DIAGNOSTIC); +} + // Get custom message for this locked flag, or return NULL if // none is available. void Flag::get_locked_message(char* buf, int buflen) const {