diff --git a/src/hotspot/cpu/x86/vm_version_x86.cpp b/src/hotspot/cpu/x86/vm_version_x86.cpp index 1c9f8ed2e40..094ab370190 100644 --- a/src/hotspot/cpu/x86/vm_version_x86.cpp +++ b/src/hotspot/cpu/x86/vm_version_x86.cpp @@ -1665,7 +1665,7 @@ void VM_Version::get_processor_features() { #ifdef COMPILER2 if (FLAG_IS_DEFAULT(OptimizeFill)) { - if (MaxVectorSize < 32 || !VM_Version::supports_avx512vlbw()) { + if (MaxVectorSize < 32 || (!EnableX86ECoreOpts && !VM_Version::supports_avx512vlbw())) { OptimizeFill = false; } }