diff --git a/src/hotspot/cpu/aarch64/aarch64.ad b/src/hotspot/cpu/aarch64/aarch64.ad index 30b089a712e..e3c0a72eaf3 100644 --- a/src/hotspot/cpu/aarch64/aarch64.ad +++ b/src/hotspot/cpu/aarch64/aarch64.ad @@ -995,8 +995,10 @@ definitions %{ source_hpp %{ +#include "asm/macroAssembler.hpp" #include "gc/shared/cardTable.hpp" #include "gc/shared/cardTableBarrierSet.hpp" +#include "gc/shared/collectedHeap.hpp" #include "opto/addnode.hpp" class CallStubImpl { diff --git a/src/hotspot/share/prims/privilegedStack.cpp b/src/hotspot/share/prims/privilegedStack.cpp index 3c877876414..9b56e046762 100644 --- a/src/hotspot/share/prims/privilegedStack.cpp +++ b/src/hotspot/share/prims/privilegedStack.cpp @@ -28,6 +28,7 @@ #include "oops/method.hpp" #include "oops/oop.inline.hpp" #include "prims/privilegedStack.hpp" +#include "runtime/thread.inline.hpp" #include "runtime/vframe.inline.hpp" void PrivilegedElement::initialize(vframeStream* vfst, oop context, PrivilegedElement* next, TRAPS) {