JDK-8237017 : Shenandoah: Remove racy assertion
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-01-13
  • Updated: 2020-01-22
  • Resolved: 2020-01-13
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 15
15 b06Fixed
Related Reports
Relates :  
Description
During concurrent weak root processing, it tries to CAS in NULL if the oop is dead, then asserts that the slot is indeed NULL.

The assertion is racy, because there can be another thread to release the slot and then reuse it (that's why it uses CAS in the first place),  that can result assertion to fail.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/9338d0f52b2e User: zgu Date: 2020-01-13 16:52:10 +0000
13-01-2020