mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +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
|
@ -3325,6 +3325,13 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
|
|||
}
|
||||
check_deprecated_gcs();
|
||||
check_deprecated_gc_flags();
|
||||
if (AssumeMP && !UseSerialGC) {
|
||||
if (FLAG_IS_DEFAULT(ParallelGCThreads) && ParallelGCThreads == 1) {
|
||||
warning("If the number of processors is expected to increase from one, then"
|
||||
" you should configure the number of parallel GC threads appropriately"
|
||||
" using -XX:ParallelGCThreads=N");
|
||||
}
|
||||
}
|
||||
#else // INCLUDE_ALL_GCS
|
||||
assert(verify_serial_gc_flags(), "SerialGC unset");
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue