8223575: add subspace transitions to gc+metaspace=info log lines

Reviewed-by: stuefe, tschatzl
This commit is contained in:
Antonios Printezis 2019-07-03 15:46:48 -04:00
parent 5c12a30062
commit dacaff48e2
12 changed files with 152 additions and 29 deletions

View file

@ -1779,7 +1779,7 @@ bool PSParallelCompact::invoke_no_policy(bool maximum_heap_compaction) {
// miscellaneous bookkeeping.
pre_compact();
PreGCValues pre_gc_values(heap);
const PreGCValues pre_gc_values(heap);
// Get the compaction manager reserved for the VM thread.
ParCompactionManager* const vmthread_cm =
@ -1925,7 +1925,7 @@ bool PSParallelCompact::invoke_no_policy(bool maximum_heap_compaction) {
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.metadata_used());
MetaspaceUtils::print_metaspace_change(pre_gc_values.metaspace_sizes());
// Track memory usage and detect low memory
MemoryService::track_memory_usage();