diff --git a/src/share/vm/runtime/arguments.cpp b/src/share/vm/runtime/arguments.cpp index c718f7bbe2c86b5c1eaac885d52330aa3fa5bd29..f6c8661e213be47b482616983352c68da805e6cd 100644 --- a/src/share/vm/runtime/arguments.cpp +++ b/src/share/vm/runtime/arguments.cpp @@ -3617,6 +3617,8 @@ jint Arguments::parse(const JavaVMInitArgs* args) { bool settings_file_specified = false; bool needs_hotspotrc_warning = false; + ArgumentsExt::process_options(args); + const char* flags_file; int index; for (index = 0; index < args->nOptions; index++) { diff --git a/src/share/vm/runtime/arguments_ext.hpp b/src/share/vm/runtime/arguments_ext.hpp index b8dbd5a89ecd6649509968fde8edaabe4353e850..b0fbcc3d85683fe1d006662452465172008981fb 100644 --- a/src/share/vm/runtime/arguments_ext.hpp +++ b/src/share/vm/runtime/arguments_ext.hpp @@ -34,6 +34,7 @@ public: static inline bool check_gc_consistency_user(); static inline bool check_gc_consistency_ergo(); static inline bool check_vm_args_consistency(); + static void process_options(const JavaVMInitArgs* args) {} }; void ArgumentsExt::select_gc_ergonomically() { diff --git a/src/share/vm/runtime/globals.cpp b/src/share/vm/runtime/globals.cpp index 928f7134e14dc477f3e959d48c754c1ef6f68be1..310fc2eae8f0168899a68297ccf70aa0e83def5b 100644 --- a/src/share/vm/runtime/globals.cpp +++ b/src/share/vm/runtime/globals.cpp @@ -243,6 +243,11 @@ bool Flag::is_unlocked() const { 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 { diff --git a/src/share/vm/runtime/globals.hpp b/src/share/vm/runtime/globals.hpp index c7cc5b3150aea8e2c397f5954e6e52343e3cb48e..51f7f673eb56e70f3891b6bc557a8ed6730e302d 100644 --- a/src/share/vm/runtime/globals.hpp +++ b/src/share/vm/runtime/globals.hpp @@ -313,6 +313,8 @@ struct Flag { bool is_writeable_ext() const; bool is_external_ext() const; + void unlock_diagnostic(); + void get_locked_message(char*, int) const; void get_locked_message_ext(char*, int) const;