--- old/src/share/vm/runtime/arguments.cpp 2013-02-27 12:11:30.000000000 -0800 +++ new/src/share/vm/runtime/arguments.cpp 2013-02-27 12:11:30.000000000 -0800 @@ -1805,6 +1805,13 @@ 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 " @@ -3296,6 +3303,7 @@ } else if (UseG1GC) { set_g1_gc_flags(); } + check_gc_flags(); check_deprecated_gcs(); #else // INCLUDE_ALL_GCS assert(verify_serial_gc_flags(), "SerialGC unset"); --- old/src/share/vm/runtime/arguments.hpp 2013-02-27 12:11:30.000000000 -0800 +++ new/src/share/vm/runtime/arguments.hpp 2013-02-27 12:11:30.000000000 -0800 @@ -413,6 +413,7 @@ static jint adjust_after_os(); // Check for consistency in the selection of the garbage collector. static bool check_gc_consistency(); + static void check_gc_flags(); static void check_deprecated_gcs(); // Check consistecy or otherwise of VM argument settings static bool check_vm_args_consistency();