From d7363bbd3b89eafc169c390b596e5caf79e58859 Mon Sep 17 00:00:00 2001 From: Thomas Schatzl Date: Tue, 27 Oct 2015 11:44:49 +0100 Subject: [PATCH] 8140583: Without PrintPLAB, there are superfluous newlines in the GC log messages Conditionalize offending newlines by -XX:+PrintPLAB Reviewed-by: mgerdin --- hotspot/src/share/vm/gc/g1/g1EvacStats.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hotspot/src/share/vm/gc/g1/g1EvacStats.cpp b/hotspot/src/share/vm/gc/g1/g1EvacStats.cpp index bc62419905b..de0e5eda296 100644 --- a/hotspot/src/share/vm/gc/g1/g1EvacStats.cpp +++ b/hotspot/src/share/vm/gc/g1/g1EvacStats.cpp @@ -107,7 +107,9 @@ void G1EvacStats::adjust_desired_plab_sz() { 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(); }