comparison src/cpu/sparc/vm/vm_version_sparc.cpp @ 3892:baf763f388e6

7059037: Use BIS for zeroing on T4 Summary: Use BIS for zeroing new allocated big (2Kb and more) objects and arrays. Reviewed-by: never, twisti, ysr
author kvn
date Fri, 26 Aug 2011 08:52:22 -0700
parents 1af104d6cf99
children 2f9b79ddb05c
comparison
equal deleted inserted replaced
3891:ac8738449b6f 3892:baf763f388e6
166 FLAG_SET_DEFAULT(UseCBCond, true); 166 FLAG_SET_DEFAULT(UseCBCond, true);
167 } 167 }
168 } else if (UseCBCond) { 168 } else if (UseCBCond) {
169 warning("CBCOND instruction is not available on this CPU"); 169 warning("CBCOND instruction is not available on this CPU");
170 FLAG_SET_DEFAULT(UseCBCond, false); 170 FLAG_SET_DEFAULT(UseCBCond, false);
171 }
172
173 assert(BlockZeroingLowLimit > 0, "invalid value");
174 if (has_block_zeroing()) {
175 if (FLAG_IS_DEFAULT(UseBlockZeroing)) {
176 FLAG_SET_DEFAULT(UseBlockZeroing, true);
177 }
178 } else if (UseBlockZeroing) {
179 warning("BIS zeroing instructions are not available on this CPU");
180 FLAG_SET_DEFAULT(UseBlockZeroing, false);
171 } 181 }
172 182
173 #ifdef COMPILER2 183 #ifdef COMPILER2
174 // T4 and newer Sparc cpus have fast RDPC. 184 // T4 and newer Sparc cpus have fast RDPC.
175 if (has_fast_rdpc() && FLAG_IS_DEFAULT(UseRDPCForConstantTableBase)) { 185 if (has_fast_rdpc() && FLAG_IS_DEFAULT(UseRDPCForConstantTableBase)) {