Skip to content

Commit

Permalink
Revert clinit_barrier t1
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Oct 14, 2024
1 parent 1ef98a2 commit 59382a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/cpu/riscv/sharedRuntime_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1471,8 +1471,8 @@ nmethod* SharedRuntime::generate_native_wrapper(MacroAssembler* masm,

if (VM_Version::supports_fast_class_init_checks() && method->needs_clinit_barrier()) {
Label L_skip_barrier;
__ mov_metadata(t0, method->method_holder()); // InstanceKlass*
__ clinit_barrier(t0, t1, &L_skip_barrier);
__ mov_metadata(t1, method->method_holder()); // InstanceKlass*
__ 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 59382a8

Please sign in to comment.