Mercurial > hg > graal-compiler
diff src/share/vm/runtime/timer.cpp @ 6752:9646b7ff4d14
7198130: G1: PrintReferenceGC output comes out of order
Summary: Move the first part of the GC logging, including timestamp, to the start of the GC
Reviewed-by: johnc, jwilhelm
author | brutisso |
---|---|
date | Mon, 17 Sep 2012 10:33:13 +0200 |
parents | f08d439fab8c |
children | b9a9ed0f8eeb |
line wrap: on
line diff
--- a/src/share/vm/runtime/timer.cpp Mon Sep 17 10:46:59 2012 -0400 +++ b/src/share/vm/runtime/timer.cpp Mon Sep 17 10:33:13 2012 +0200 @@ -120,10 +120,7 @@ if (_active) { _accum = NULL; - if (PrintGCTimeStamps) { - _logfile->stamp(); - _logfile->print(": "); - } + _logfile->stamp(PrintGCTimeStamps); _logfile->print("[%s", title); _logfile->flush(); _t.start(); @@ -141,10 +138,7 @@ _logfile = (logfile != NULL) ? logfile : tty; if (_active) { if (_verbose) { - if (PrintGCTimeStamps) { - _logfile->stamp(); - _logfile->print(": "); - } + _logfile->stamp(PrintGCTimeStamps); _logfile->print("[%s", title); _logfile->flush(); }