8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines

Reviewed-by: tschatzl, kbarrett
This commit is contained in:
Antonios Printezis 2019-08-06 15:03:48 -04:00
parent 27600c60e2
commit 3f2a661b7e
11 changed files with 133 additions and 48 deletions

View file

@ -1779,7 +1779,7 @@ bool PSParallelCompact::invoke_no_policy(bool maximum_heap_compaction) {
// miscellaneous bookkeeping.
pre_compact();
const PreGCValues pre_gc_values(heap);
const PreGenGCValues pre_gc_values = heap->get_pre_gc_values();
// Get the compaction manager reserved for the VM thread.
ParCompactionManager* const vmthread_cm =
@ -1923,9 +1923,7 @@ bool PSParallelCompact::invoke_no_policy(bool maximum_heap_compaction) {
accumulated_time()->stop();
}
young_gen->print_used_change(pre_gc_values.young_gen_used());
old_gen->print_used_change(pre_gc_values.old_gen_used());
MetaspaceUtils::print_metaspace_change(pre_gc_values.metaspace_sizes());
heap->print_heap_change(pre_gc_values);
// Track memory usage and detect low memory
MemoryService::track_memory_usage();