JDK-8331048 : G1: Prune rebuild candidates based on G1HeapWastePercent early
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-04-24
  • Updated: 2024-05-09
  • Resolved: 2024-05-03
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 23
23 b22Fixed
Related Reports
Relates :  
Description
In G1 the G1CollectionSetChooser removes/prunes regions that meet the G1HeapWastePercent criteria detailed in JDK-8262185 in the Cleanup pause. These regions are removed from possible evacuation and their remembered sets cleared.

This implies that the work done in rebuilding these remembered sets is wasted. We can prune these regions before the rebuild during Remark and thus not construct these remembered sets which would eventually be cleared anyway.

Moving this pruning improves rebuild time in addition to remembered set memory usage.
Comments
Changeset: ce73fec8 Author: Ivan Walulya <iwalulya@openjdk.org> Date: 2024-05-03 12:35:58 +0000 URL: https://git.openjdk.org/jdk/commit/ce73fec882357d749619576a3219516b7391fb3f
03-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/18970 Date: 2024-04-26 10:07:55 +0000
26-04-2024