comparison src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.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 da91efe96a93
children bc675e55b48c
comparison
equal deleted inserted replaced
6751:2a48c84f1d04 6752:9646b7ff4d14
3423 assert(_wallclock.is_active(), "Wall clock should not have stopped"); 3423 assert(_wallclock.is_active(), "Wall clock should not have stopped");
3424 _collector->stopTimer(); 3424 _collector->stopTimer();
3425 _wallclock.stop(); 3425 _wallclock.stop();
3426 if (PrintGCDetails) { 3426 if (PrintGCDetails) {
3427 gclog_or_tty->date_stamp(PrintGCDateStamps); 3427 gclog_or_tty->date_stamp(PrintGCDateStamps);
3428 if (PrintGCTimeStamps) { 3428 gclog_or_tty->stamp(PrintGCTimeStamps);
3429 gclog_or_tty->stamp();
3430 gclog_or_tty->print(": ");
3431 }
3432 gclog_or_tty->print("[%s-concurrent-%s: %3.3f/%3.3f secs]", 3429 gclog_or_tty->print("[%s-concurrent-%s: %3.3f/%3.3f secs]",
3433 _collector->cmsGen()->short_name(), 3430 _collector->cmsGen()->short_name(),
3434 _phase, _collector->timerValue(), _wallclock.seconds()); 3431 _phase, _collector->timerValue(), _wallclock.seconds());
3435 if (_print_cr) { 3432 if (_print_cr) {
3436 gclog_or_tty->print_cr(""); 3433 gclog_or_tty->print_cr("");