Skip to content
Permalink
Browse files
8240370: Provide Intel JCC Erratum opt-out
Reviewed-by: redestad, vlivanov, thartmann
  • Loading branch information
fisk committed Mar 5, 2020
1 parent 3490262 commit 3ddd7b86c8926cdc3673f439ee33b58521d47684
Showing with 11 additions and 2 deletions.
  1. +6 −1 src/hotspot/cpu/x86/globals_x86.hpp
  2. +5 −1 src/hotspot/cpu/x86/vm_version_x86.cpp
@@ -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
@@ -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",

0 comments on commit 3ddd7b8

Please sign in to comment.