mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-27 22:02:25 +00:00
8185572: Enable AssumeMP by default on SPARC machines
Reviewed-by: kvn, dholmes, bobv
This commit is contained in:
parent
3807233b98
commit
d0e8cdbc40
@ -4462,6 +4462,16 @@ jint Arguments::apply_ergo() {
|
||||
|
||||
set_shared_spaces_flags();
|
||||
|
||||
#if defined(SPARC)
|
||||
// BIS instructions require 'membar' instruction regardless of the number
|
||||
// of CPUs because in virtualized/container environments which might use only 1
|
||||
// CPU, BIS instructions may produce incorrect results.
|
||||
|
||||
if (FLAG_IS_DEFAULT(AssumeMP)) {
|
||||
FLAG_SET_DEFAULT(AssumeMP, true);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Check the GC selections again.
|
||||
if (!check_gc_consistency()) {
|
||||
return JNI_EINVAL;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user