--- old/src/share/vm/runtime/arguments.cpp 2012-12-18 14:50:36.000000000 +0100 +++ new/src/share/vm/runtime/arguments.cpp 2012-12-18 14:50:35.000000000 +0100 @@ -1783,6 +1783,18 @@ return status; } +void Arguments::check_deprecated_gcs() { + if (UseConcMarkSweepGC && !UseParNewGC) { + warning("Using the DefNew young collector with the CMS collector is deprecated"); + } + + if (UseParNewGC && !UseConcMarkSweepGC) { + // !UseConcMarkSweepGC means that we are using serial old gc. Unfortunately we don't + // set up UseSerialGC properly, so that can't be used in the check here. + warning("Using the ParNew young collector with the Serial old collector is deprecated"); + } +} + // Check stack pages settings bool Arguments::check_stack_pages() { @@ -3247,6 +3259,7 @@ } else if (UseG1GC) { set_g1_gc_flags(); } + check_deprecated_gcs(); #endif // INCLUDE_ALTERNATE_GCS #ifdef SERIALGC