src/hotspot/share/gc/parallel/psParallelCompact.cpp
changeset 55576 4d193e40e7af
parent 55513 be05771cdfdf
child 55740 b3ff56f955c8
--- a/src/hotspot/share/gc/parallel/psParallelCompact.cpp	Wed Jul 03 16:30:19 2019 +0000
+++ b/src/hotspot/share/gc/parallel/psParallelCompact.cpp	Wed Jul 03 15:46:48 2019 -0400
@@ -1779,7 +1779,7 @@
   // 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 @@
 
     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();