Skip to content

Commit

Permalink
Revert clinit_barrier
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Oct 15, 2024
1 parent ec28fe3 commit 4beb12d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/cpu/riscv/c1_LIRAssembler_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ void LIR_Assembler::clinit_barrier(ciMethod* method) {

Label L_skip_barrier;

__ mov_metadata(t0, method->holder()->constant_encoding());
__ clinit_barrier(t0, t1, &L_skip_barrier /* L_fast_path */);
__ mov_metadata(t1, method->holder()->constant_encoding());
__ clinit_barrier(t1, t0, &L_skip_barrier /* L_fast_path */);
__ far_jump(RuntimeAddress(SharedRuntime::get_handle_wrong_method_stub()));
__ bind(L_skip_barrier);
}
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/cpu/riscv/riscv.ad
Original file line number Diff line number Diff line change
Expand Up @@ -1418,8 +1418,8 @@ void MachPrologNode::emit(C2_MacroAssembler *masm, PhaseRegAlloc *ra_) const {

Label L_skip_barrier;

__ mov_metadata(t0, C->method()->holder()->constant_encoding());
__ clinit_barrier(t0, t1, &L_skip_barrier);
__ mov_metadata(t1, C->method()->holder()->constant_encoding());
__ clinit_barrier(t1, t0, &L_skip_barrier);
__ far_jump(RuntimeAddress(SharedRuntime::get_handle_wrong_method_stub()));
__ bind(L_skip_barrier);
}
Expand Down

0 comments on commit 4beb12d

Please sign in to comment.