comparison src/share/vm/runtime/arguments.cpp @ 7452:e0ab18eafbde

8003820: Deprecate untested and rarely used GC combinations Summary: Log warning messages for DefNew+CMS and ParNew+SerialOld Reviewed-by: ysr, jwilhelm, jcoomes
author brutisso
date Fri, 04 Jan 2013 11:10:17 +0100
parents ca0a78017dc7
children c98b676a98b4
comparison
equal deleted inserted replaced
7451:ca0a78017dc7 7452:e0ab18eafbde
1774 "allowed\n"); 1774 "allowed\n");
1775 status = false; 1775 status = false;
1776 } 1776 }
1777 1777
1778 return status; 1778 return status;
1779 }
1780
1781 void Arguments::check_deprecated_gcs() {
1782 if (UseConcMarkSweepGC && !UseParNewGC) {
1783 warning("Using the DefNew young collector with the CMS collector is deprecated "
1784 "and will likely be removed in a future release");
1785 }
1786
1787 if (UseParNewGC && !UseConcMarkSweepGC) {
1788 // !UseConcMarkSweepGC means that we are using serial old gc. Unfortunately we don't
1789 // set up UseSerialGC properly, so that can't be used in the check here.
1790 warning("Using the ParNew young collector with the Serial old collector is deprecated "
1791 "and will likely be removed in a future release");
1792 }
1779 } 1793 }
1780 1794
1781 // Check stack pages settings 1795 // Check stack pages settings
1782 bool Arguments::check_stack_pages() 1796 bool Arguments::check_stack_pages()
1783 { 1797 {
3240 } else if (UseParNewGC) { // skipped if CMS is set above 3254 } else if (UseParNewGC) { // skipped if CMS is set above
3241 set_parnew_gc_flags(); 3255 set_parnew_gc_flags();
3242 } else if (UseG1GC) { 3256 } else if (UseG1GC) {
3243 set_g1_gc_flags(); 3257 set_g1_gc_flags();
3244 } 3258 }
3259 check_deprecated_gcs();
3245 #endif // INCLUDE_ALTERNATE_GCS 3260 #endif // INCLUDE_ALTERNATE_GCS
3246 3261
3247 #ifdef SERIALGC 3262 #ifdef SERIALGC
3248 assert(verify_serial_gc_flags(), "SerialGC unset"); 3263 assert(verify_serial_gc_flags(), "SerialGC unset");
3249 #endif // SERIALGC 3264 #endif // SERIALGC