x86_64, minimal:
/scratch/shade/jdk-jdk/src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp: In static member function 'static nmethod* SharedRuntime::generate_native_wrapper(MacroAssembler*, const methodHandle&, int, BasicType*, VMRegPair*, BasicType)':
/scratch/shade/jdk-jdk/src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp:2164:5: error: invalid use of incomplete type 'class BarrierSetAssembler'
bs->nmethod_entry_barrier(masm);
^~
In file included from /scratch/shade/jdk-jdk/src/hotspot/share/precompiled/precompiled.hpp:89:
/scratch/shade/jdk-jdk/src/hotspot/share/gc/shared/barrierSet.hpp:36:7: note: forward declaration of 'class BarrierSetAssembler'
class BarrierSetAssembler;
^~~~~~~~~~~~~~~~~~~