mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-24 04:54:40 +02:00
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:
parent
0f6fd31a93
commit
76cc94fb99
3 changed files with 11 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue