JDK-8134048 : Clear remembered set while shrinking the heap
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2015-08-20
  • Updated: 2021-07-01
  • Resolved: 2021-07-01
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
tbdResolved
Related Reports
Relates :  
Relates :  
Description
While looking at the review for JDK-8131734 there has been a discussion whether at heap shrinking time the remembered sets should be cleared. Apparently this is not the case even during full GC after visual inspection of the code.

While the remembered set will be reclaimed anyway when reallocating that region, it might take a while until a region is reallocated. So somewhat more eagerly clearing the remembered set could help average memory usage.

Check whether this is actually true (remembered sets will be cleared only very lazily), and if so, more eagerly clean the remembered set at that time.
Comments
Remembered sets are cleared immediately now with JDK-8017163.
01-07-2021