mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +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
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue