JDK-8320196 : assert(cur != anon_owner_ptr()) failed: no anon owner here with Graal
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 22
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-11-15
  • Updated: 2024-07-10
  • Resolved: 2024-01-23
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.
Other
repo-galahadFixed
Related Reports
Relates :  
Description
Partial escape analysis can pick up allocations and lock operations and then materialize them all at once later.  Currently the code isn't emitting the rematerialized locks in the right order which doesn't pose an deadlock problems since all the objects are non-escaping at the point of rematerialization.  However with lightweight locking this means the lock stack is incorrect ordered which results in errors when unlocking.  The fix is simply to emit them in the proper order.
Comments
ILW = Assert because lock stack is incorrectly ordered, with Graal as JIT and lightweight locking, no workaround but disable EA / compilation of affected method = HLM = P3
16-11-2023