src/share/vm/runtime/arguments.cpp

Print this page

        

@@ -1803,10 +1803,17 @@
   }
 
   return status;
 }
 
+void Arguments::check_gc_flags() {
+  if (FLAG_IS_CMDLINE(MaxGCMinorPauseMillis)) {
+    warning("Using MaxGCMinorPauseMillis as minor pause goal is deprecated"
+            "and will likely be removed in future release");
+  }
+}
+
 void Arguments::check_deprecated_gcs() {
   if (UseConcMarkSweepGC && !UseParNewGC) {
     warning("Using the DefNew young collector with the CMS collector is deprecated "
         "and will likely be removed in a future release");
   }

@@ -3294,10 +3301,11 @@
   } else if (UseParNewGC) {  // skipped if CMS is set above
     set_parnew_gc_flags();
   } else if (UseG1GC) {
     set_g1_gc_flags();
   }
+  check_gc_flags();
   check_deprecated_gcs();
 #else // INCLUDE_ALL_GCS
   assert(verify_serial_gc_flags(), "SerialGC unset");
 #endif // INCLUDE_ALL_GCS