Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/timer.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 | f08d439fab8c |
children | b9a9ed0f8eeb |
comparison
equal
deleted
inserted
replaced
6751:2a48c84f1d04 | 6752:9646b7ff4d14 |
---|---|
118 _print_cr = print_cr; | 118 _print_cr = print_cr; |
119 _logfile = (logfile != NULL) ? logfile : tty; | 119 _logfile = (logfile != NULL) ? logfile : tty; |
120 | 120 |
121 if (_active) { | 121 if (_active) { |
122 _accum = NULL; | 122 _accum = NULL; |
123 if (PrintGCTimeStamps) { | 123 _logfile->stamp(PrintGCTimeStamps); |
124 _logfile->stamp(); | |
125 _logfile->print(": "); | |
126 } | |
127 _logfile->print("[%s", title); | 124 _logfile->print("[%s", title); |
128 _logfile->flush(); | 125 _logfile->flush(); |
129 _t.start(); | 126 _t.start(); |
130 } | 127 } |
131 } | 128 } |
139 _verbose = verbose; | 136 _verbose = verbose; |
140 _print_cr = true; | 137 _print_cr = true; |
141 _logfile = (logfile != NULL) ? logfile : tty; | 138 _logfile = (logfile != NULL) ? logfile : tty; |
142 if (_active) { | 139 if (_active) { |
143 if (_verbose) { | 140 if (_verbose) { |
144 if (PrintGCTimeStamps) { | 141 _logfile->stamp(PrintGCTimeStamps); |
145 _logfile->stamp(); | |
146 _logfile->print(": "); | |
147 } | |
148 _logfile->print("[%s", title); | 142 _logfile->print("[%s", title); |
149 _logfile->flush(); | 143 _logfile->flush(); |
150 } | 144 } |
151 _accum = accumulator; | 145 _accum = accumulator; |
152 _t.start(); | 146 _t.start(); |