From 6677227301acf06eb8be264e4eb3e092d0d7442f Mon Sep 17 00:00:00 2001 From: Jie Fu Date: Thu, 8 Sep 2022 02:29:01 +0000 Subject: [PATCH] 8293497: Build failure due to MaxVectorSize was not declared when C2 is disabled after JDK-8293254 Reviewed-by: dlong --- src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp b/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp index b08e1f77e0f..68d824459d1 100644 --- a/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp +++ b/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp @@ -33,6 +33,9 @@ #ifdef COMPILER2 #include "opto/c2_globals.hpp" #endif +#if INCLUDE_JVMCI +#include "jvmci/jvmci_globals.hpp" +#endif #define __ _masm->