7176220: 'Full GC' events miss date stamp information occasionally

Move date stamp logic into GCTraceTime

Reviewed-by: brutisso, tschatzl
This commit is contained in:
Andreas Eriksson 2013-05-17 17:24:20 +02:00
parent 0afc5ae6fc
commit f65caabf9c
8 changed files with 2 additions and 11 deletions

View file

@ -49,10 +49,8 @@ GCTraceTime::GCTraceTime(const char* title, bool doit, bool print_cr, GCTimer* t
}
if (_doit) {
if (PrintGCTimeStamps) {
gclog_or_tty->stamp();
gclog_or_tty->print(": ");
}
gclog_or_tty->date_stamp(PrintGCDateStamps);
gclog_or_tty->stamp(PrintGCTimeStamps);
if (PrintGCID) {
gclog_or_tty->print("#%u: ", gc_id.id());
}