JDK-8342042 : PPC64: compiler_fast_unlock_object flags failure instead of success
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: ppc
  • Submitted: 2024-10-14
  • Updated: 2024-10-21
  • Resolved: 2024-10-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24 b20Fixed
Related Reports
Relates :  
Description
At

https://github.com/openjdk/jdk/blob/dcac4b0a532f2ca6cb374da7ece331e8266ab351/src/hotspot/cpu/ppc/macroAssembler_ppc.cpp#L2742

ObjectMonitor::_succ is compared to null. Not equal means the unlock operation was successfully completed. This should be signaled by setting `flag` to EQ but instead it is NE at the end of the operation. Consequently the slow path will be taken to complete the monitor exit in the runtime.
Comments
Changeset: fa39e84d Branch: master Author: Richard Reingruber <rrich@openjdk.org> Date: 2024-10-17 07:19:54 +0000 URL: https://git.openjdk.org/jdk/commit/fa39e84d64d79f6c66f98110e98d2562f35681e1
17-10-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/21496 Date: 2024-10-14 13:29:43 +0000
15-10-2024