8140583: Without PrintPLAB, there are superfluous newlines in the GC log messages
authortschatzl
Tue, 27 Oct 2015 11:44:49 +0100
changeset 33605 7cf76a278055
parent 33604 ad1cd9269bd4
child 33607 2db29ded3865
8140583: Without PrintPLAB, there are superfluous newlines in the GC log messages Summary: Conditionalize offending newlines by -XX:+PrintPLAB Reviewed-by: mgerdin
hotspot/src/share/vm/gc/g1/g1EvacStats.cpp
--- a/hotspot/src/share/vm/gc/g1/g1EvacStats.cpp	Fri Oct 09 16:39:37 2015 +0200
+++ b/hotspot/src/share/vm/gc/g1/g1EvacStats.cpp	Tue Oct 27 11:44:49 2015 +0100
@@ -107,7 +107,9 @@
       gclog_or_tty->print(" (plab_sz = " SIZE_FORMAT " desired_plab_sz = " SIZE_FORMAT ") ", cur_plab_sz, plab_sz);
     }
   }
-  gclog_or_tty->cr();
+  if (PrintPLAB) {
+    gclog_or_tty->cr();
+  }
   // Clear accumulators for next round.
   reset();
 }