Skip to content

Commit

Permalink
RISC-V: Fix typo in InterpreterMacroAssembler::call_VM_preemptable
Browse files Browse the repository at this point in the history
  • Loading branch information
RealFYang committed Oct 8, 2024
1 parent c57132f commit 335bfcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ inline intptr_t* ThawBase::possibly_adjust_frame(frame& top) {
CodeBlob* cb = top.cb();

if (cb->frame_size() == 2) {
// C2 runtime stub case. For aarch64 the real size of the c2 runtime stub is 2 words bigger
// C2 runtime stub case. For riscv64 the real size of the c2 runtime stub is 2 words bigger
// than what we think, i.e. size is 4. This is because the _last_Java_sp is not set to the
// sp right before making the call to the VM, but rather it is artificially set 2 words above
// this real sp so that we can store the return address at last_Java_sp[-1], and keep this
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/riscv/interp_masm_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ void InterpreterMacroAssembler::call_VM_preemptable(Register oop_result,

// Make VM call. In case of preemption set last_pc to
// the one we want to resume to.
la(t0, not_preempted);
la(t0, resume_pc);
sd(t0, Address(xthread, JavaThread::last_Java_pc_offset()));
call_VM_base(oop_result, noreg, noreg, entry_point, 1, false /*check_exceptions*/);

Expand Down

0 comments on commit 335bfcd

Please sign in to comment.