8185572: Enable AssumeMP by default on SPARC machines

Tue, 15 Aug 2017 14:03:52 +0000

author
poonam
date
Tue, 15 Aug 2017 14:03:52 +0000
changeset 8888
cc5c5ad8dd1c
parent 8887
b55756ea22d8
child 8889
79d7902dcb95

8185572: Enable AssumeMP by default on SPARC machines
Reviewed-by: kvn, dholmes, bobv

src/share/vm/runtime/arguments.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/runtime/arguments.cpp	Fri Aug 11 23:51:07 2017 -0400
     1.2 +++ b/src/share/vm/runtime/arguments.cpp	Tue Aug 15 14:03:52 2017 +0000
     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