提交 92d5e076 编写于 作者: T tamao

8008368: Deprecate MaxGCMinorPauseMillis

Summary: Deprecate MaxGCMinorPauseMillis and emit a warning if set by users
Reviewed-by: brutisso, johnc
Contributed-by: Ntamao <tao.mao@oracle.com>
上级 d3abf4d0
......@@ -1813,6 +1813,13 @@ void Arguments::check_deprecated_gcs() {
}
}
void Arguments::check_deprecated_gc_flags() {
if (FLAG_IS_CMDLINE(MaxGCMinorPauseMillis)) {
warning("Using MaxGCMinorPauseMillis as minor pause goal is deprecated"
"and will likely be removed in future release");
}
}
// Check stack pages settings
bool Arguments::check_stack_pages()
{
......@@ -3292,6 +3299,7 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
set_g1_gc_flags();
}
check_deprecated_gcs();
check_deprecated_gc_flags();
#else // INCLUDE_ALL_GCS
assert(verify_serial_gc_flags(), "SerialGC unset");
#endif // INCLUDE_ALL_GCS
......
......@@ -414,6 +414,7 @@ class Arguments : AllStatic {
// Check for consistency in the selection of the garbage collector.
static bool check_gc_consistency();
static void check_deprecated_gcs();
static void check_deprecated_gc_flags();
// Check consistecy or otherwise of VM argument settings
static bool check_vm_args_consistency();
// Check stack pages settings
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册