src/share/vm/runtime/timer.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hs-gc-g1-gc-timestamp Cdiff src/share/vm/runtime/timer.cpp
src/share/vm/runtime/timer.cpp
Print this page
rev 3618 : 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
*** 118,131 ****
_print_cr = print_cr;
_logfile = (logfile != NULL) ? logfile : tty;
if (_active) {
_accum = NULL;
! if (PrintGCTimeStamps) {
! _logfile->stamp();
! _logfile->print(": ");
! }
_logfile->print("[%s", title);
_logfile->flush();
_t.start();
}
}
--- 118,128 ----
_print_cr = print_cr;
_logfile = (logfile != NULL) ? logfile : tty;
if (_active) {
_accum = NULL;
! _logfile->stamp(PrintGCTimeStamps);
_logfile->print("[%s", title);
_logfile->flush();
_t.start();
}
}
*** 139,152 ****
_verbose = verbose;
_print_cr = true;
_logfile = (logfile != NULL) ? logfile : tty;
if (_active) {
if (_verbose) {
! if (PrintGCTimeStamps) {
! _logfile->stamp();
! _logfile->print(": ");
! }
_logfile->print("[%s", title);
_logfile->flush();
}
_accum = accumulator;
_t.start();
--- 136,146 ----
_verbose = verbose;
_print_cr = true;
_logfile = (logfile != NULL) ? logfile : tty;
if (_active) {
if (_verbose) {
! _logfile->stamp(PrintGCTimeStamps);
_logfile->print("[%s", title);
_logfile->flush();
}
_accum = accumulator;
_t.start();
src/share/vm/runtime/timer.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File