Mercurial > hg > graal-compiler
changeset 8734:209f8ba5020b
8008368: Deprecate MaxGCMinorPauseMillis
Summary: Deprecate MaxGCMinorPauseMillis and emit a warning if set by users
Reviewed-by: brutisso, johnc
Contributed-by: tamao <tao.mao@oracle.com>
author | tamao |
---|---|
date | Thu, 07 Mar 2013 10:44:04 -0800 |
parents | 9def4075da6d |
children | 1f3354851c91 167812fe00bb |
files | src/share/vm/runtime/arguments.cpp src/share/vm/runtime/arguments.hpp |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp Tue Mar 05 15:36:56 2013 -0800 +++ b/src/share/vm/runtime/arguments.cpp Thu Mar 07 10:44:04 2013 -0800 @@ -1813,6 +1813,13 @@ } } +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 @@ 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
--- a/src/share/vm/runtime/arguments.hpp Tue Mar 05 15:36:56 2013 -0800 +++ b/src/share/vm/runtime/arguments.hpp Thu Mar 07 10:44:04 2013 -0800 @@ -414,6 +414,7 @@ // 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