1.1 --- a/src/cpu/sparc/vm/vm_version_sparc.cpp Thu Aug 25 20:29:30 2011 -0700 1.2 +++ b/src/cpu/sparc/vm/vm_version_sparc.cpp Fri Aug 26 08:52:22 2011 -0700 1.3 @@ -170,6 +170,16 @@ 1.4 FLAG_SET_DEFAULT(UseCBCond, false); 1.5 } 1.6 1.7 + assert(BlockZeroingLowLimit > 0, "invalid value"); 1.8 + if (has_block_zeroing()) { 1.9 + if (FLAG_IS_DEFAULT(UseBlockZeroing)) { 1.10 + FLAG_SET_DEFAULT(UseBlockZeroing, true); 1.11 + } 1.12 + } else if (UseBlockZeroing) { 1.13 + warning("BIS zeroing instructions are not available on this CPU"); 1.14 + FLAG_SET_DEFAULT(UseBlockZeroing, false); 1.15 + } 1.16 + 1.17 #ifdef COMPILER2 1.18 // T4 and newer Sparc cpus have fast RDPC. 1.19 if (has_fast_rdpc() && FLAG_IS_DEFAULT(UseRDPCForConstantTableBase)) {