8057818: collect allocation context statistics at gc pauses

Reviewed-by: mikael, jmasa
This commit is contained in:
John Coomes 2014-09-10 13:01:13 -07:00
parent 0856ec5961
commit 40155ae18d
5 changed files with 19 additions and 1 deletions

View file

@ -3596,7 +3596,7 @@ void G1CollectedHeap::gc_prologue(bool full /* Ignored */) {
}
}
void G1CollectedHeap::gc_epilogue(bool full /* Ignored */) {
void G1CollectedHeap::gc_epilogue(bool full) {
if (G1SummarizeRSetStats &&
(G1SummarizeRSetStatsPeriod > 0) &&
@ -3613,6 +3613,7 @@ void G1CollectedHeap::gc_epilogue(bool full /* Ignored */) {
// always_do_update_barrier = true;
resize_all_tlabs();
allocation_context_stats().update(full);
// We have just completed a GC. Update the soft reference
// policy with the new heap occupancy