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>
--- a/hotspot/src/share/vm/runtime/arguments.cpp Tue Mar 05 15:36:56 2013 -0800
+++ b/hotspot/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/hotspot/src/share/vm/runtime/arguments.hpp Tue Mar 05 15:36:56 2013 -0800
+++ b/hotspot/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