equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
412 return UnlockExperimentalVMOptions; |
412 return UnlockExperimentalVMOptions; |
413 } |
413 } |
414 return is_unlocked_ext(); |
414 return is_unlocked_ext(); |
415 } |
415 } |
416 |
416 |
417 void Flag::unlock_diagnostic() { |
417 void Flag::clear_diagnostic() { |
418 assert(is_diagnostic(), "sanity"); |
418 assert(is_diagnostic(), "sanity"); |
419 _flags = Flags(_flags & ~KIND_DIAGNOSTIC); |
419 _flags = Flags(_flags & ~KIND_DIAGNOSTIC); |
|
420 assert(!is_diagnostic(), "sanity"); |
420 } |
421 } |
421 |
422 |
422 // Get custom message for this locked flag, or NULL if |
423 // Get custom message for this locked flag, or NULL if |
423 // none is available. Returns message type produced. |
424 // none is available. Returns message type produced. |
424 Flag::MsgType Flag::get_locked_message(char* buf, int buflen) const { |
425 Flag::MsgType Flag::get_locked_message(char* buf, int buflen) const { |