mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
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:
parent
9a271f468a
commit
a08d48f9b1
4 changed files with 45 additions and 46 deletions
|
@ -120,10 +120,7 @@ TraceTime::TraceTime(const char* title,
|
|||
|
||||
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 @@ TraceTime::TraceTime(const char* title,
|
|||
_logfile = (logfile != NULL) ? logfile : tty;
|
||||
if (_active) {
|
||||
if (_verbose) {
|
||||
if (PrintGCTimeStamps) {
|
||||
_logfile->stamp();
|
||||
_logfile->print(": ");
|
||||
}
|
||||
_logfile->stamp(PrintGCTimeStamps);
|
||||
_logfile->print("[%s", title);
|
||||
_logfile->flush();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue