2178143: JVM crashes if the number of bound CPUs changed during runtime

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
This commit is contained in:
Yumin Qi 2013-03-27 17:03:19 -07:00 committed by Yumin Qi
parent 0f6fd31a93
commit 76cc94fb99
3 changed files with 11 additions and 1 deletions

View file

@ -180,7 +180,7 @@ class os: AllStatic {
// Interface for detecting multiprocessor system
static inline bool is_MP() {
assert(_processor_count > 0, "invalid processor count");
return _processor_count > 1;
return _processor_count > 1 || AssumeMP;
}
static julong available_memory();
static julong physical_memory();