8296136: Use correct register in aarch64_enc_fast_unlock()

Reviewed-by: aph, fyang
This commit is contained in:
Roman Kennke 2022-11-02 11:32:14 +00:00
parent 47d513baa2
commit 7619602c36
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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) {