JDK-8364760 : G1: Remove obsolete code in G1MergeCardSetClosure
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-08-05
  • Updated: 2025-08-14
  • Resolved: 2025-08-08
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 26
26 b11Fixed
Related Reports
Causes :  
Description
Before JDK-8343782 G1 iterated remsets for humongous eager reclaim candidates by region, as there has been a 1:1 mapping between regions and (card-based) remembered sets.

With that change, all remembered set iteration should go via the group remsets (`G1CSetCandidateGroup`), and the code does, except for humongous eager reclaim candidates which handle their group remsets on the side (which is a separate issue).

This obsoleted some code in `G1MergeCardSetClosure` - it does not need to be a `G1HeapRegionClosure` any more, and for humongous regions we can directly do the iteration via the group rem set attached to the humongous starts region. I.e. inline that `merge_card_set_for_region()` method.
Comments
Changeset: 47017e38 Branch: master Author: Thomas Schatzl <tschatzl@openjdk.org> Date: 2025-08-08 07:57:06 +0000 URL: https://git.openjdk.org/jdk/commit/47017e38642a58fd6425ec68c1fed96f19f39404
08-08-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/26645 Date: 2025-08-05 16:12:32 +0000
05-08-2025