hotspot/src/cpu/sparc/vm/vm_version_sparc.cpp
changeset 13481 4f6460af9ba2
parent 13104 657b387034fb
child 13886 8d82c4dfa722
equal deleted inserted replaced
13468:791ed80c7e71 13481:4f6460af9ba2
   104     }
   104     }
   105     // Align loops on a single instruction boundary.
   105     // Align loops on a single instruction boundary.
   106     if (FLAG_IS_DEFAULT(OptoLoopAlignment)) {
   106     if (FLAG_IS_DEFAULT(OptoLoopAlignment)) {
   107       FLAG_SET_DEFAULT(OptoLoopAlignment, 4);
   107       FLAG_SET_DEFAULT(OptoLoopAlignment, 4);
   108     }
   108     }
   109     // When using CMS, we cannot use memset() in BOT updates because
   109     // When using CMS or G1, we cannot use memset() in BOT updates
   110     // the sun4v/CMT version in libc_psr uses BIS which exposes
   110     // because the sun4v/CMT version in libc_psr uses BIS which
   111     // "phantom zeros" to concurrent readers. See 6948537.
   111     // exposes "phantom zeros" to concurrent readers. See 6948537.
   112     if (FLAG_IS_DEFAULT(UseMemSetInBOT) && UseConcMarkSweepGC) {
   112     if (FLAG_IS_DEFAULT(UseMemSetInBOT) && (UseConcMarkSweepGC || UseG1GC)) {
   113       FLAG_SET_DEFAULT(UseMemSetInBOT, false);
   113       FLAG_SET_DEFAULT(UseMemSetInBOT, false);
   114     }
   114     }
   115 #ifdef _LP64
   115 #ifdef _LP64
   116     // 32-bit oops don't make sense for the 64-bit VM on sparc
   116     // 32-bit oops don't make sense for the 64-bit VM on sparc
   117     // since the 32-bit VM has the same registers and smaller objects.
   117     // since the 32-bit VM has the same registers and smaller objects.