1.1 --- a/src/share/vm/runtime/arguments.cpp Wed Sep 13 02:04:03 2017 -0700 1.2 +++ b/src/share/vm/runtime/arguments.cpp Wed Sep 27 22:04:59 2017 -0700 1.3 @@ -4056,6 +4056,16 @@ 1.4 1.5 set_shared_spaces_flags(); 1.6 1.7 +#if defined(SPARC) 1.8 + // BIS instructions require 'membar' instruction regardless of the number 1.9 + // of CPUs because in virtualized/container environments which might use only 1 1.10 + // CPU, BIS instructions may produce incorrect results. 1.11 + 1.12 + if (FLAG_IS_DEFAULT(AssumeMP)) { 1.13 + FLAG_SET_DEFAULT(AssumeMP, true); 1.14 + } 1.15 +#endif 1.16 + 1.17 // Check the GC selections again. 1.18 if (!check_gc_consistency()) { 1.19 return JNI_EINVAL;