Skip to content

Commit 7f131a9

Browse files
committed
8343415: RISC-V: Increase maximum size of C2EntryBarrierStub by four
Reviewed-by: rehn, fjiang
1 parent 452a5fb commit 7f131a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hotspot/cpu/riscv/c2_CodeStubs_riscv.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,15 @@ void C2SafepointPollStub::emit(C2_MacroAssembler& masm) {
5555

5656
int C2EntryBarrierStub::max_size() const {
5757
// 4 bytes for alignment
58-
return 3 * NativeInstruction::instruction_size + 4 + 4;
58+
return 4 * NativeInstruction::instruction_size + 4 + 4;
5959
}
6060

6161
void C2EntryBarrierStub::emit(C2_MacroAssembler& masm) {
6262
__ bind(entry());
6363
// emits auipc + jalr for address inside code cache
6464
__ far_call(StubRoutines::method_entry_barrier());
6565

66+
// emits auipc + jr assuming continuation is not near
6667
__ j(continuation());
6768

6869
// make guard value 4-byte aligned so that it can be accessed atomically

0 commit comments

Comments
 (0)