RFR: 8297692: Avoid sending per-region GCPhaseParallel JFR events in G1ScanCollectionSetRegionClosure

Thomas Schatzl tschatzl at openjdk.org
Fri Nov 8 16:56:05 UTC 2024


On Fri, 8 Nov 2024 15:20:21 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> Hi all,
> 
>   please review this change that significantly reduces the amount of "Code Roots" and "Optional Roots" JFR events to reduce default recording sizes significantly.
> 
> E.g. a 10min BigRamTester run creates a 23MB recording without this change, with like hundreds of thousands of these events (#gcs * #gc threads * #regions in collection set). With this change, the recording is reduced to 4MB (#gcs * #gc threads)
> 
> Testing: gha, tier1-3
> 
> Thanks,
>   Thomas

src/hotspot/share/gc/g1/g1RemSet.cpp line 842:

> 840:     _opt_refs_scanned(0),
> 841:     _opt_refs_memory_used(0) { }
> 842:  

Suggestion:

    _opt_refs_memory_used(0) { }

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21984#discussion_r1834729833


More information about the hotspot-gc-dev mailing list