On Wed, 23 Dec 2020 09:28:11 GMT, Hao Sun <github.com+16932759+shqk...@openjdk.org> wrote:
>> The declaration sites for JVM flags were changed by JDK-8243205 and the >> subsequent JDK-8258074. As a result, undeclared identifier errors >> occurred while building VM without compiler1 or compiler2 feature. >> >> Making the corresponding header files included would fix it. >> >> Note that we have tested locally with this patch, build without C1/C2 >> succeeded on Linux X86/AArch64 machines. > > Hao Sun has updated the pull request incrementally with one additional commit > since the last revision: > > Use JVMCI compilation condition and remove redundant header > > Check the compilation condition INCLUDE_JVMCI before trying to include > the header file, i.e. jvmci_globals.hpp, for stubGenerator_x86_64.cpp > > In jvmciCompilerToVMInit.cpp, remove the redundant header > jvmci_globals.hpp since it is already included by compiler_globals.hpp > > Change-Id: I8858d4ca94b6d12396db6bbebf226b351b5f230a > CustomizedGitHooks: yes src/hotspot/share/compiler/oopMap.cpp line 32: > 30: #include "compiler/oopMap.hpp" > 31: #include "gc/shared/collectedHeap.hpp" > 32: #include "jvmci/jvmci_globals.hpp" Also #if INCLUDE_JVMCI here? ------------- PR: https://git.openjdk.java.net/jdk/pull/1876