355 |
355 |
356 void JVMFlag::clear_diagnostic() { |
356 void JVMFlag::clear_diagnostic() { |
357 assert(is_diagnostic(), "sanity"); |
357 assert(is_diagnostic(), "sanity"); |
358 _flags = Flags(_flags & ~KIND_DIAGNOSTIC); |
358 _flags = Flags(_flags & ~KIND_DIAGNOSTIC); |
359 assert(!is_diagnostic(), "sanity"); |
359 assert(!is_diagnostic(), "sanity"); |
|
360 } |
|
361 |
|
362 void JVMFlag::clear_experimental() { |
|
363 assert(is_experimental(), "sanity"); |
|
364 _flags = Flags(_flags & ~KIND_EXPERIMENTAL); |
|
365 assert(!is_experimental(), "sanity"); |
|
366 } |
|
367 |
|
368 void JVMFlag::set_product() { |
|
369 assert(!is_product(), "sanity"); |
|
370 _flags = Flags(_flags | KIND_PRODUCT); |
|
371 assert(is_product(), "sanity"); |
360 } |
372 } |
361 |
373 |
362 // Get custom message for this locked flag, or NULL if |
374 // Get custom message for this locked flag, or NULL if |
363 // none is available. Returns message type produced. |
375 // none is available. Returns message type produced. |
364 JVMFlag::MsgType JVMFlag::get_locked_message(char* buf, int buflen) const { |
376 JVMFlag::MsgType JVMFlag::get_locked_message(char* buf, int buflen) const { |