comparison src/share/vm/runtime/arguments.cpp @ 8845:1b90c7607451

2178143: JVM crashes if the number of bound CPUs changed during runtime Summary: Supply a new flag -XX:+AssumeMP to workaround the problem. With the flag is turned on, assume VM run on MP platform so is_MP() will return true that sync calls will not skip away. Reviewed-by: dholmes, acorn, dcubed, jmasa Contributed-by: yumin.qi@oracle.com
author minqi
date Wed, 27 Mar 2013 17:03:19 -0700
parents 36376b540a98
children c0f9217203b2
comparison
equal deleted inserted replaced
8839:b601102d00c8 8845:1b90c7607451
3323 } else if (UseG1GC) { 3323 } else if (UseG1GC) {
3324 set_g1_gc_flags(); 3324 set_g1_gc_flags();
3325 } 3325 }
3326 check_deprecated_gcs(); 3326 check_deprecated_gcs();
3327 check_deprecated_gc_flags(); 3327 check_deprecated_gc_flags();
3328 if (AssumeMP && !UseSerialGC) {
3329 if (FLAG_IS_DEFAULT(ParallelGCThreads) && ParallelGCThreads == 1) {
3330 warning("If the number of processors is expected to increase from one, then"
3331 " you should configure the number of parallel GC threads appropriately"
3332 " using -XX:ParallelGCThreads=N");
3333 }
3334 }
3328 #else // INCLUDE_ALL_GCS 3335 #else // INCLUDE_ALL_GCS
3329 assert(verify_serial_gc_flags(), "SerialGC unset"); 3336 assert(verify_serial_gc_flags(), "SerialGC unset");
3330 #endif // INCLUDE_ALL_GCS 3337 #endif // INCLUDE_ALL_GCS
3331 3338
3332 // Set bytecode rewriting flags 3339 // Set bytecode rewriting flags