--- a/src/hotspot/share/runtime/flags/jvmFlag.cpp Mon Oct 28 11:33:28 2019 -0400
+++ b/src/hotspot/share/runtime/flags/jvmFlag.cpp Mon Oct 28 16:06:08 2019 +0000
@@ -359,6 +359,18 @@
assert(!is_diagnostic(), "sanity");
}
+void JVMFlag::clear_experimental() {
+ assert(is_experimental(), "sanity");
+ _flags = Flags(_flags & ~KIND_EXPERIMENTAL);
+ assert(!is_experimental(), "sanity");
+}
+
+void JVMFlag::set_product() {
+ assert(!is_product(), "sanity");
+ _flags = Flags(_flags | KIND_PRODUCT);
+ assert(is_product(), "sanity");
+}
+
// Get custom message for this locked flag, or NULL if
// none is available. Returns message type produced.
JVMFlag::MsgType JVMFlag::get_locked_message(char* buf, int buflen) const {