8008368: Deprecate MaxGCMinorPauseMillis
authortamao
Thu, 07 Mar 2013 10:44:04 -0800
changeset 15950 e69feec75343
parent 15949 a55dea304e8c
child 15951 fde41b75883f
child 15952 575c93e18104
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>
hotspot/src/share/vm/runtime/arguments.cpp
hotspot/src/share/vm/runtime/arguments.hpp
--- 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