Skip to content

Commit

Permalink
8296136: Use correct register in aarch64_enc_fast_unlock()
Browse files Browse the repository at this point in the history
Reviewed-by: aph, fyang
  • Loading branch information
rkennke committed Nov 2, 2022
1 parent 47d513b commit 7619602
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/aarch64/aarch64.ad
Expand Up @@ -3866,7 +3866,7 @@ encode %{

// Handle existing monitor.
__ ldr(tmp, Address(oop, oopDesc::mark_offset_in_bytes()));
__ tbnz(disp_hdr, exact_log2(markWord::monitor_value), object_has_monitor);
__ tbnz(tmp, exact_log2(markWord::monitor_value), object_has_monitor);

if (!UseHeavyMonitors) {
// Check if it is still a light weight lock, this is is true if we
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/riscv/riscv.ad
Expand Up @@ -2474,7 +2474,7 @@ encode %{

// Handle existing monitor.
__ ld(tmp, Address(oop, oopDesc::mark_offset_in_bytes()));
__ andi(t0, disp_hdr, markWord::monitor_value);
__ andi(t0, tmp, markWord::monitor_value);
__ bnez(t0, object_has_monitor);

if (!UseHeavyMonitors) {
Expand Down

1 comment on commit 7619602

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.