mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8014078: G1: improve remembered set summary information by providing per region type information
Add memory consumption breakdown on a per region type in the G1 remembered set summary statistics. This simplifies remembered set memory consumption analysis. Reviewed-by: brutisso
This commit is contained in:
parent
dc5131c84d
commit
bd9ffce267
7 changed files with 430 additions and 184 deletions
|
@ -3681,6 +3681,11 @@ void G1CollectedHeap::gc_prologue(bool full /* Ignored */) {
|
|||
assert(InlineCacheBuffer::is_empty(), "should have cleaned up ICBuffer");
|
||||
// Fill TLAB's and such
|
||||
ensure_parsability(true);
|
||||
|
||||
if (G1SummarizeRSetStats && (G1SummarizeRSetStatsPeriod > 0) &&
|
||||
(total_collections() % G1SummarizeRSetStatsPeriod == 0)) {
|
||||
g1_rem_set()->print_periodic_summary_info("Before GC RS summary");
|
||||
}
|
||||
}
|
||||
|
||||
void G1CollectedHeap::gc_epilogue(bool full /* Ignored */) {
|
||||
|
@ -3689,7 +3694,7 @@ void G1CollectedHeap::gc_epilogue(bool full /* Ignored */) {
|
|||
(G1SummarizeRSetStatsPeriod > 0) &&
|
||||
// we are at the end of the GC. Total collections has already been increased.
|
||||
((total_collections() - 1) % G1SummarizeRSetStatsPeriod == 0)) {
|
||||
g1_rem_set()->print_periodic_summary_info();
|
||||
g1_rem_set()->print_periodic_summary_info("After GC RS summary");
|
||||
}
|
||||
|
||||
// FIXME: what is this about?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue