RFR: 8366065: ZGC: Differentiate Young Collection type strings in statistics

Thomas Schatzl tschatzl at openjdk.org
Thu Sep 11 08:49:07 UTC 2025


On Thu, 28 Aug 2025 12:21:46 GMT, Joel Sikström <jsikstro at openjdk.org> wrote:

> Hello,
> 
> Currently, two different Young Collection (YC) types print identical strings in the GC statistics at the end of `-Xlog:gc*`. This makes it difficult to distinguish statistics for specific YC types when analyzing logs for performance issues. This PR updates the strings to match the `ZYoungType` enum names, improving traceability and making logs clearer.
> 
> Relevant enum for reference:
> ```c++
> enum class ZYoungType {
>   minor,
>   major_full_preclean,
>   major_full_roots,
>   major_partial_roots,
>   none
> };
> 
> 
> Testing:
> * GHA

Seems good to me.

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

Marked as reviewed by tschatzl (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26986#pullrequestreview-3209916069


More information about the hotspot-gc-dev mailing list