The output of gc+phases=trace contains a line showing the number of regions reclaimed.
However the corresponding sub-items of Humongous Register show counts in number of objects. This is confusing e.g. in:
[267.722s][debug][gc,phases ] GC(486) Humongous Register: 0.1ms
[267.722s][trace][gc,phases ] GC(486) Humongous Total: 73
[267.722s][trace][gc,phases ] GC(486) Humongous Candidate: 73
[...]
[267.722s][debug][gc,phases ] GC(486) Humongous Reclaim: 1.4ms
[267.722s][trace][gc,phases ] GC(486) Humongous Reclaimed: 221
I.e. the value printed for the latter message is higher than the value for the initially found.
Since we already print the number of region difference in gc+heap for humongous regions, so it might be more useful to print the number of objects here as well.
However the corresponding sub-items of Humongous Register show counts in number of objects. This is confusing e.g. in:
[267.722s][debug][gc,phases ] GC(486) Humongous Register: 0.1ms
[267.722s][trace][gc,phases ] GC(486) Humongous Total: 73
[267.722s][trace][gc,phases ] GC(486) Humongous Candidate: 73
[...]
[267.722s][debug][gc,phases ] GC(486) Humongous Reclaim: 1.4ms
[267.722s][trace][gc,phases ] GC(486) Humongous Reclaimed: 221
I.e. the value printed for the latter message is higher than the value for the initially found.
Since we already print the number of region difference in gc+heap for humongous regions, so it might be more useful to print the number of objects here as well.