7198130: G1: PrintReferenceGC output comes out of order

Move the first part of the GC logging, including timestamp, to the start of the GC

Reviewed-by: johnc, jwilhelm
This commit is contained in:
Bengt Rutisson 2012-09-17 10:33:13 +02:00
parent 9a271f468a
commit a08d48f9b1
4 changed files with 45 additions and 46 deletions

View file

@ -3425,10 +3425,7 @@ CMSPhaseAccounting::~CMSPhaseAccounting() {
_wallclock.stop();
if (PrintGCDetails) {
gclog_or_tty->date_stamp(PrintGCDateStamps);
if (PrintGCTimeStamps) {
gclog_or_tty->stamp();
gclog_or_tty->print(": ");
}
gclog_or_tty->stamp(PrintGCTimeStamps);
gclog_or_tty->print("[%s-concurrent-%s: %3.3f/%3.3f secs]",
_collector->cmsGen()->short_name(),
_phase, _collector->timerValue(), _wallclock.seconds());