8341854: Incorrect clearing of ZF in fast_unlock_lightweight on x86

Reviewed-by: stefank, aboldtch, pchilanomate, dcubed
This commit is contained in:
Fredrik Bredberg 2024-10-09 16:45:56 +00:00
parent 38c1d65148
commit fcc9c8d570

@ -822,7 +822,7 @@ void C2_MacroAssembler::fast_unlock_lightweight(Register obj, Register reg_rax,
}
movptr(Address(thread, JavaThread::unlocked_inflated_monitor_offset()), monitor);
testl(monitor, monitor); // Fast Unlock ZF = 0
orl(t, 1); // Fast Unlock ZF = 0
jmpb(slow_path);
// Recursive unlock.