JDK-8343782 : G1: Use one G1CardSet instance for multiple old gen regions
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-11-07
  • Updated: 2024-11-11
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
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
We currently have a 1:1 mapping of region remembered sets and G1CardSet instances, this means that the total remembered set may get very large just by the fact of having many regions and many inter-region pointers.

However, at each mixed-gc, depending on the G1MixedGCCountTarget, certain regions have to be collected together.  With this in mind, we may have these regions share a single instance of G1CardSet. This can decrease the number of inter-remembered set pointers significantly for regions that will be collected at the same time.

The expected benefit is reduction in the memory overhead of the remembered set and the remembered set merge time during collection pause. 

The one disadvantage is that this decreases the flexibility during evacuation slightly: you can only evacuate all regions that share a particular G1CardSet at once.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22015 Date: 2024-11-11 13:58:36 +0000
11-11-2024