src/share/vm/runtime/arguments.cpp

changeset 9007
91894ffc746c
parent 8763
afff7bd98f7d
parent 9004
3d505f6c7af1
child 9013
18366fa39fe0
     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;

mercurial