8140583: Without PrintPLAB, there are superfluous newlines in the GC log messages
Summary: Conditionalize offending newlines by -XX:+PrintPLAB
Reviewed-by: mgerdin
--- 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();
}