RFR: 8365780: G1: Remset for young regions are cleared too early during Full GC

Albert Mingkun Yang ayang at openjdk.org
Tue Aug 19 14:05:41 UTC 2025


On Tue, 19 Aug 2025 09:24:06 GMT, Ivan Walulya <iwalulya at openjdk.org> wrote:

> Hi,
> Please review this patch to move clearing of the young region remsets to later in the Full GC. G1HeapVerifier specifically G1FullCollector::verify_after_marking still assumes that the remsets for young regions are still valid and with status complete. Clearing these remsets too early triggers the verification failure.
> 
> Testing: - Tiers 1-3

It's a bit odd though that we perform checking on young-gen remset during a full-gc, considering that the concept of young-gen remset is not relevant during a full-gc context.

-------------

Marked as reviewed by ayang (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26839#pullrequestreview-3132502220


More information about the hotspot-gc-dev mailing list