src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp
changeset 55152 6c205bbdafd2
parent 55121 f19a728d576d
child 55230 9775d05d69c8
--- a/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp	Tue May 21 15:46:09 2019 +0200
+++ b/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp	Mon Jun 03 14:50:59 2019 +0200
@@ -1604,9 +1604,8 @@
   }
 
   metrics.snap_after();
-  metrics.print();
-
-  if (metrics.is_good_progress("Full GC")) {
+
+  if (metrics.is_good_progress()) {
     _progress_last_gc.set();
   } else {
     // Nothing to do. Tell the allocation path that we have failed to make
@@ -1739,11 +1738,10 @@
   }
 
   metrics.snap_after();
-  metrics.print();
 
   // Check for futility and fail. There is no reason to do several back-to-back Degenerated cycles,
   // because that probably means the heap is overloaded and/or fragmented.
-  if (!metrics.is_good_progress("Degenerated GC")) {
+  if (!metrics.is_good_progress()) {
     _progress_last_gc.unset();
     cancel_gc(GCCause::_shenandoah_upgrade_to_full_gc);
     op_degenerated_futile();