8240370: Provide Intel JCC Erratum opt-out

Reviewed-by: redestad, vlivanov, thartmann
This commit is contained in:
Erik Österlund 2020-03-05 11:12:51 +00:00
parent 3490262a6b
commit 3ddd7b86c8
2 changed files with 11 additions and 2 deletions

View File

@ -210,5 +210,10 @@ define_pd_global(intx, InitArrayShortSize, 8*BytesPerLong);
"Minimum array size in bytes to use AVX512 intrinsics" \
"for copy, inflate and fill. When this value is set as zero" \
"compare operations can also use AVX512 intrinsics.") \
range(0, max_jint)
range(0, max_jint) \
\
diagnostic(bool, IntelJccErratumMitigation, true, \
"Turn off JVM mitigations related to Intel micro code " \
"mitigations for the Intel JCC erratum")
#endif // CPU_X86_GLOBALS_X86_HPP

View File

@ -721,7 +721,11 @@ void VM_Version::get_processor_features() {
}
}
_has_intel_jcc_erratum = compute_has_intel_jcc_erratum();
if (FLAG_IS_DEFAULT(IntelJccErratumMitigation)) {
_has_intel_jcc_erratum = compute_has_intel_jcc_erratum();
} else {
_has_intel_jcc_erratum = IntelJccErratumMitigation;
}
char buf[256];
jio_snprintf(buf, sizeof(buf), "(%u cores per cpu, %u threads per core) family %d model %d stepping %d%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",