diff a/src/hotspot/cpu/riscv/c2_MacroAssembler_riscv.hpp b/src/hotspot/cpu/riscv/c2_MacroAssembler_riscv.hpp --- a/src/hotspot/cpu/riscv/c2_MacroAssembler_riscv.hpp +++ b/src/hotspot/cpu/riscv/c2_MacroAssembler_riscv.hpp @@ -47,10 +47,12 @@ bool isLU, Register cnt1, Register cnt2, Register tmp1, Register tmp2, Register tmp3, const int STUB_THRESHOLD, Label *STUB, Label *DONE); public: + void entry_barrier(); + // Code used by cmpFastLock and cmpFastUnlock mach instructions in .ad file. void fast_lock(Register object, Register box, Register tmp1, Register tmp2, Register tmp3, Register tmp4); void fast_unlock(Register object, Register box, Register tmp1, Register tmp2, Register tmp3);