Skip to content

Commit

Permalink
fix comment typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zifeihan committed Feb 26, 2024
1 parent 4bea5dd commit fc104a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/riscv/macroAssembler_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5074,7 +5074,7 @@ void MacroAssembler::lightweight_lock(Register obj, Register tmp1, Register tmp2
test_bit(t, mark, exact_log2(markWord::monitor_value));
bnez(t, slow, /* is_far */ true);

// Try to lock. Transition lock bits 0b00 => 0b01
// Try to lock. Transition lock-bits 0b01 => 0b00
assert(oopDesc::mark_offset_in_bytes() == 0, "required to avoid a la");
ori(mark, mark, markWord::unlocked_value);
xori(t, mark, markWord::unlocked_value);
Expand Down

0 comments on commit fc104a3

Please sign in to comment.