提交 cca7946f 编写于 作者: J jiangli

8047934: Adding new API for unlocking diagnostic argument.

Summary: New API for unlocking diagnostic argument.
Reviewed-by: dholmes, ccheung, egahlin, iklam, bdelsart
上级 efa8e575
...@@ -3617,6 +3617,8 @@ jint Arguments::parse(const JavaVMInitArgs* args) { ...@@ -3617,6 +3617,8 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
bool settings_file_specified = false; bool settings_file_specified = false;
bool needs_hotspotrc_warning = false; bool needs_hotspotrc_warning = false;
ArgumentsExt::process_options(args);
const char* flags_file; const char* flags_file;
int index; int index;
for (index = 0; index < args->nOptions; index++) { for (index = 0; index < args->nOptions; index++) {
......
...@@ -34,6 +34,7 @@ public: ...@@ -34,6 +34,7 @@ public:
static inline bool check_gc_consistency_user(); static inline bool check_gc_consistency_user();
static inline bool check_gc_consistency_ergo(); static inline bool check_gc_consistency_ergo();
static inline bool check_vm_args_consistency(); static inline bool check_vm_args_consistency();
static void process_options(const JavaVMInitArgs* args) {}
}; };
void ArgumentsExt::select_gc_ergonomically() { void ArgumentsExt::select_gc_ergonomically() {
......
...@@ -243,6 +243,11 @@ bool Flag::is_unlocked() const { ...@@ -243,6 +243,11 @@ bool Flag::is_unlocked() const {
return is_unlocked_ext(); 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 // Get custom message for this locked flag, or return NULL if
// none is available. // none is available.
void Flag::get_locked_message(char* buf, int buflen) const { void Flag::get_locked_message(char* buf, int buflen) const {
......
...@@ -313,6 +313,8 @@ struct Flag { ...@@ -313,6 +313,8 @@ struct Flag {
bool is_writeable_ext() const; bool is_writeable_ext() const;
bool is_external_ext() const; bool is_external_ext() const;
void unlock_diagnostic();
void get_locked_message(char*, int) const; void get_locked_message(char*, int) const;
void get_locked_message_ext(char*, int) const; void get_locked_message_ext(char*, int) const;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册