src/cpu/sparc/vm/vm_version_sparc.cpp

changeset 1873
3bfae429e2cf
parent 1802
9e321dcfa5b7
child 1907
c18cbe5936b8
child 1930
3657cb01ffc5
     1.1 --- a/src/cpu/sparc/vm/vm_version_sparc.cpp	Thu Apr 22 13:23:15 2010 -0700
     1.2 +++ b/src/cpu/sparc/vm/vm_version_sparc.cpp	Mon May 03 10:24:51 2010 -0700
     1.3 @@ -104,6 +104,12 @@
     1.4      if (FLAG_IS_DEFAULT(OptoLoopAlignment)) {
     1.5        FLAG_SET_DEFAULT(OptoLoopAlignment, 4);
     1.6      }
     1.7 +    // When using CMS, we cannot use memset() in BOT updates because
     1.8 +    // the sun4v/CMT version in libc_psr uses BIS which exposes
     1.9 +    // "phantom zeros" to concurrent readers. See 6948537.
    1.10 +    if (FLAG_IS_DEFAULT(UseMemSetInBOT) && UseConcMarkSweepGC) {
    1.11 +      FLAG_SET_DEFAULT(UseMemSetInBOT, false);
    1.12 +    }
    1.13    }
    1.14  
    1.15    // Use hardware population count instruction if available.

mercurial