Skip to content

Commit e7f63ba

Browse files
author
Jatin Bhateja
committed
8359327: Incorrect AVX3Threshold results into code buffer overflows on APX targets
Reviewed-by: sviswanathan
1 parent a0fb35c commit e7f63ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hotspot/cpu/x86/stubDeclarations_x86.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
do_arch_blob, \
240240
do_arch_entry, \
241241
do_arch_entry_init) \
242-
do_arch_blob(final, 31000 \
242+
do_arch_blob(final, 33000 \
243243
WINDOWS_ONLY(+22000) ZGC_ONLY(+20000)) \
244244

245245
#endif // CPU_X86_STUBDECLARATIONS_HPP

src/hotspot/cpu/x86/vm_version_x86.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2111,7 +2111,7 @@ bool VM_Version::is_intel_cascade_lake() {
21112111
// has improved implementation of 64-byte load/stores and so the default
21122112
// threshold is set to 0 for these platforms.
21132113
int VM_Version::avx3_threshold() {
2114-
return (is_intel_family_core() &&
2114+
return (is_intel_server_family() &&
21152115
supports_serialize() &&
21162116
FLAG_IS_DEFAULT(AVX3Threshold)) ? 0 : AVX3Threshold;
21172117
}

0 commit comments

Comments
 (0)