The strings in ZPhaseGenerationYoung should be unique so that they are easily identifiable in the statistics print at the end of a GC log. Currently there are two elements with the string "Young Generation", making it difficult to know which is which.
Example from a log file:
[410.509s][info ][gc,stats ] Young Generation: Young Generation 0.000 / 0.000 562.738 / 974.334 562.738 / 974.334 562.738 / 974.334 ms
[410.509s][info ][gc,stats ] Young Generation: Young Generation 0.000 / 0.000 651.942 / 1011.705 651.942 / 1011.705 651.942 / 1011.705 ms
[410.509s][info ][gc,stats ] Young Generation: Young Generation (Collect Roots) 0.000 / 0.000 3.502 / 5.477 3.502 / 5.477 3.502 / 5.477 ms
[410.509s][info ][gc,stats ] Young Generation: Young Generation (Promote All) 0.000 / 0.000 13.646 / 25.425 13.646 / 25.425 13.646 / 25.425 ms
Example from a log file:
[410.509s][info ][gc,stats ] Young Generation: Young Generation 0.000 / 0.000 562.738 / 974.334 562.738 / 974.334 562.738 / 974.334 ms
[410.509s][info ][gc,stats ] Young Generation: Young Generation 0.000 / 0.000 651.942 / 1011.705 651.942 / 1011.705 651.942 / 1011.705 ms
[410.509s][info ][gc,stats ] Young Generation: Young Generation (Collect Roots) 0.000 / 0.000 3.502 / 5.477 3.502 / 5.477 3.502 / 5.477 ms
[410.509s][info ][gc,stats ] Young Generation: Young Generation (Promote All) 0.000 / 0.000 13.646 / 25.425 13.646 / 25.425 13.646 / 25.425 ms
- links to
-
Review(master) openjdk/jdk/26986