JDK-8213996 : Remove one of the SparsePRT entry tables
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-11-16
  • Updated: 2018-12-05
  • Resolved: 2018-11-28
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 12
12 b22Fixed
Related Reports
Relates :  
Description
Currently SparsePRT contains two entry tables called _cur and _next.

This has originally been used(?) to allow safe adding of remembered set entries during iteration.

That feature has never been used (at least >= JDK7), so what was left was some complicated dance in various phases to always iterate over the right table, and make sure to release resources correctly.

Remove that feature as it only complicates the code and keeps on memory longer than needed.