RFR: Report correct total garbage data

Aleksey Shipilev shade at redhat.com
Fri Mar 24 20:01:06 UTC 2017

gc+ergo reports weird data:

[21.336s][info][gc,ergo] GC(3) Total Garbage: 347M
[21.336s][info][gc,ergo] GC(3) Immediate Garbage: 216M, 27 regions
[21.336s][info][gc,ergo] GC(3) Garbage to be collected: 8072M (2323% of total),
1062 regions
[21.336s][info][gc,ergo] GC(3) Live objects to be evacuated: 423M

"total garbage" is wrong, because it is polled after cset is constructed. Which
excludes all regions from the cset in total garbage calculation. Trivial fix:



More information about the shenandoah-dev mailing list