annotate src/share/vm/runtime/timer.cpp @ 13212:eb03a7335eb0

Use fixed instead of virtual register for target in far foreign call, since the register allocator does not support virtual registers to be used at call sites.
author Christian Wimmer <christian.wimmer@oracle.com>
date Mon, 02 Dec 2013 14:20:32 -0800
parents c0b0974dd509
children d8041d695d19
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
25 #include "precompiled.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
26 #include "oops/oop.inline.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
27 #include "runtime/timer.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
28 #include "utilities/ostream.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
29 #ifdef TARGET_OS_FAMILY_linux
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
30 # include "os_linux.inline.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
31 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
32 #ifdef TARGET_OS_FAMILY_solaris
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
33 # include "os_solaris.inline.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
34 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
35 #ifdef TARGET_OS_FAMILY_windows
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
36 # include "os_windows.inline.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
37 #endif
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1972
diff changeset
38 #ifdef TARGET_OS_FAMILY_bsd
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1972
diff changeset
39 # include "os_bsd.inline.hpp"
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 1972
diff changeset
40 #endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
41
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
42 double TimeHelper::counter_to_seconds(jlong counter) {
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
43 double count = (double) counter;
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
44 double freq = (double) os::elapsed_frequency();
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
45 return counter/freq;
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
46 }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
47
13103
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
48 elapsedTimer::elapsedTimer(jlong time, jlong timeUnitsPerSecond) {
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
49 _active = false;
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
50 jlong osTimeUnitsPerSecond = os::elapsed_frequency();
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
51 assert(osTimeUnitsPerSecond % 1000 == 0, "must be");
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
52 assert(timeUnitsPerSecond % 1000 == 0, "must be");
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
53 while (osTimeUnitsPerSecond < timeUnitsPerSecond) {
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
54 timeUnitsPerSecond /= 1000;
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
55 time *= 1000;
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
56 }
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
57 while (osTimeUnitsPerSecond > timeUnitsPerSecond) {
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
58 timeUnitsPerSecond *= 1000;
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
59 time /= 1000;
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
60 }
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
61 _counter = time;
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
62 }
c0b0974dd509 moved notification of Graal compilation statistics from VMToCompiler to CompilerToVM
Doug Simon <doug.simon@oracle.com>
parents: 10405
diff changeset
63
0
a61af66fc99e Initial load
duke
parents:
diff changeset
64 void elapsedTimer::add(elapsedTimer t) {
a61af66fc99e Initial load
duke
parents:
diff changeset
65 _counter += t._counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
66 }
a61af66fc99e Initial load
duke
parents:
diff changeset
67
a61af66fc99e Initial load
duke
parents:
diff changeset
68 void elapsedTimer::start() {
a61af66fc99e Initial load
duke
parents:
diff changeset
69 if (!_active) {
a61af66fc99e Initial load
duke
parents:
diff changeset
70 _active = true;
a61af66fc99e Initial load
duke
parents:
diff changeset
71 _start_counter = os::elapsed_counter();
a61af66fc99e Initial load
duke
parents:
diff changeset
72 }
a61af66fc99e Initial load
duke
parents:
diff changeset
73 }
a61af66fc99e Initial load
duke
parents:
diff changeset
74
a61af66fc99e Initial load
duke
parents:
diff changeset
75 void elapsedTimer::stop() {
a61af66fc99e Initial load
duke
parents:
diff changeset
76 if (_active) {
a61af66fc99e Initial load
duke
parents:
diff changeset
77 _counter += os::elapsed_counter() - _start_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
78 _active = false;
a61af66fc99e Initial load
duke
parents:
diff changeset
79 }
a61af66fc99e Initial load
duke
parents:
diff changeset
80 }
a61af66fc99e Initial load
duke
parents:
diff changeset
81
a61af66fc99e Initial load
duke
parents:
diff changeset
82 double elapsedTimer::seconds() const {
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
83 return TimeHelper::counter_to_seconds(_counter);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
84 }
a61af66fc99e Initial load
duke
parents:
diff changeset
85
a61af66fc99e Initial load
duke
parents:
diff changeset
86 jlong elapsedTimer::milliseconds() const {
a61af66fc99e Initial load
duke
parents:
diff changeset
87 jlong ticks_per_ms = os::elapsed_frequency() / 1000;
a61af66fc99e Initial load
duke
parents:
diff changeset
88 return _counter / ticks_per_ms;
a61af66fc99e Initial load
duke
parents:
diff changeset
89 }
a61af66fc99e Initial load
duke
parents:
diff changeset
90
a61af66fc99e Initial load
duke
parents:
diff changeset
91 jlong elapsedTimer::active_ticks() const {
a61af66fc99e Initial load
duke
parents:
diff changeset
92 if (!_active) {
a61af66fc99e Initial load
duke
parents:
diff changeset
93 return ticks();
a61af66fc99e Initial load
duke
parents:
diff changeset
94 }
a61af66fc99e Initial load
duke
parents:
diff changeset
95 jlong counter = _counter + os::elapsed_counter() - _start_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
96 return counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
97 }
a61af66fc99e Initial load
duke
parents:
diff changeset
98
a61af66fc99e Initial load
duke
parents:
diff changeset
99 void TimeStamp::update_to(jlong ticks) {
a61af66fc99e Initial load
duke
parents:
diff changeset
100 _counter = ticks;
a61af66fc99e Initial load
duke
parents:
diff changeset
101 if (_counter == 0) _counter = 1;
a61af66fc99e Initial load
duke
parents:
diff changeset
102 assert(is_updated(), "must not look clear");
a61af66fc99e Initial load
duke
parents:
diff changeset
103 }
a61af66fc99e Initial load
duke
parents:
diff changeset
104
a61af66fc99e Initial load
duke
parents:
diff changeset
105 void TimeStamp::update() {
a61af66fc99e Initial load
duke
parents:
diff changeset
106 update_to(os::elapsed_counter());
a61af66fc99e Initial load
duke
parents:
diff changeset
107 }
a61af66fc99e Initial load
duke
parents:
diff changeset
108
a61af66fc99e Initial load
duke
parents:
diff changeset
109 double TimeStamp::seconds() const {
a61af66fc99e Initial load
duke
parents:
diff changeset
110 assert(is_updated(), "must not be clear");
a61af66fc99e Initial load
duke
parents:
diff changeset
111 jlong new_count = os::elapsed_counter();
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
112 return TimeHelper::counter_to_seconds(new_count - _counter);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
113 }
a61af66fc99e Initial load
duke
parents:
diff changeset
114
a61af66fc99e Initial load
duke
parents:
diff changeset
115 jlong TimeStamp::milliseconds() const {
a61af66fc99e Initial load
duke
parents:
diff changeset
116 assert(is_updated(), "must not be clear");
a61af66fc99e Initial load
duke
parents:
diff changeset
117
a61af66fc99e Initial load
duke
parents:
diff changeset
118 jlong new_count = os::elapsed_counter();
a61af66fc99e Initial load
duke
parents:
diff changeset
119 jlong count = new_count - _counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
120 jlong ticks_per_ms = os::elapsed_frequency() / 1000;
a61af66fc99e Initial load
duke
parents:
diff changeset
121 return count / ticks_per_ms;
a61af66fc99e Initial load
duke
parents:
diff changeset
122 }
a61af66fc99e Initial load
duke
parents:
diff changeset
123
a61af66fc99e Initial load
duke
parents:
diff changeset
124 jlong TimeStamp::ticks_since_update() const {
a61af66fc99e Initial load
duke
parents:
diff changeset
125 assert(is_updated(), "must not be clear");
a61af66fc99e Initial load
duke
parents:
diff changeset
126 return os::elapsed_counter() - _counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
127 }
a61af66fc99e Initial load
duke
parents:
diff changeset
128
a61af66fc99e Initial load
duke
parents:
diff changeset
129 TraceTime::TraceTime(const char* title,
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
130 bool doit) {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
131 _active = doit;
a61af66fc99e Initial load
duke
parents:
diff changeset
132 _verbose = true;
a61af66fc99e Initial load
duke
parents:
diff changeset
133
a61af66fc99e Initial load
duke
parents:
diff changeset
134 if (_active) {
a61af66fc99e Initial load
duke
parents:
diff changeset
135 _accum = NULL;
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
136 tty->stamp(PrintGCTimeStamps);
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
137 tty->print("[%s", title);
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
138 tty->flush();
0
a61af66fc99e Initial load
duke
parents:
diff changeset
139 _t.start();
a61af66fc99e Initial load
duke
parents:
diff changeset
140 }
a61af66fc99e Initial load
duke
parents:
diff changeset
141 }
a61af66fc99e Initial load
duke
parents:
diff changeset
142
a61af66fc99e Initial load
duke
parents:
diff changeset
143 TraceTime::TraceTime(const char* title,
a61af66fc99e Initial load
duke
parents:
diff changeset
144 elapsedTimer* accumulator,
a61af66fc99e Initial load
duke
parents:
diff changeset
145 bool doit,
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
146 bool verbose) {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
147 _active = doit;
a61af66fc99e Initial load
duke
parents:
diff changeset
148 _verbose = verbose;
a61af66fc99e Initial load
duke
parents:
diff changeset
149 if (_active) {
a61af66fc99e Initial load
duke
parents:
diff changeset
150 if (_verbose) {
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
151 tty->stamp(PrintGCTimeStamps);
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
152 tty->print("[%s", title);
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
153 tty->flush();
0
a61af66fc99e Initial load
duke
parents:
diff changeset
154 }
a61af66fc99e Initial load
duke
parents:
diff changeset
155 _accum = accumulator;
a61af66fc99e Initial load
duke
parents:
diff changeset
156 _t.start();
a61af66fc99e Initial load
duke
parents:
diff changeset
157 }
a61af66fc99e Initial load
duke
parents:
diff changeset
158 }
a61af66fc99e Initial load
duke
parents:
diff changeset
159
a61af66fc99e Initial load
duke
parents:
diff changeset
160 TraceTime::~TraceTime() {
a61af66fc99e Initial load
duke
parents:
diff changeset
161 if (_active) {
a61af66fc99e Initial load
duke
parents:
diff changeset
162 _t.stop();
a61af66fc99e Initial load
duke
parents:
diff changeset
163 if (_accum!=NULL) _accum->add(_t);
a61af66fc99e Initial load
duke
parents:
diff changeset
164 if (_verbose) {
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
165 tty->print_cr(", %3.7f secs]", _t.seconds());
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 7207
diff changeset
166 tty->flush();
0
a61af66fc99e Initial load
duke
parents:
diff changeset
167 }
a61af66fc99e Initial load
duke
parents:
diff changeset
168 }
a61af66fc99e Initial load
duke
parents:
diff changeset
169 }
a61af66fc99e Initial load
duke
parents:
diff changeset
170
a61af66fc99e Initial load
duke
parents:
diff changeset
171 TraceCPUTime::TraceCPUTime(bool doit,
a61af66fc99e Initial load
duke
parents:
diff changeset
172 bool print_cr,
a61af66fc99e Initial load
duke
parents:
diff changeset
173 outputStream *logfile) :
a61af66fc99e Initial load
duke
parents:
diff changeset
174 _active(doit),
a61af66fc99e Initial load
duke
parents:
diff changeset
175 _print_cr(print_cr),
a61af66fc99e Initial load
duke
parents:
diff changeset
176 _starting_user_time(0.0),
a61af66fc99e Initial load
duke
parents:
diff changeset
177 _starting_system_time(0.0),
a61af66fc99e Initial load
duke
parents:
diff changeset
178 _starting_real_time(0.0),
a61af66fc99e Initial load
duke
parents:
diff changeset
179 _logfile(logfile),
a61af66fc99e Initial load
duke
parents:
diff changeset
180 _error(false) {
a61af66fc99e Initial load
duke
parents:
diff changeset
181 if (_active) {
a61af66fc99e Initial load
duke
parents:
diff changeset
182 if (logfile != NULL) {
a61af66fc99e Initial load
duke
parents:
diff changeset
183 _logfile = logfile;
a61af66fc99e Initial load
duke
parents:
diff changeset
184 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
185 _logfile = tty;
a61af66fc99e Initial load
duke
parents:
diff changeset
186 }
a61af66fc99e Initial load
duke
parents:
diff changeset
187
a61af66fc99e Initial load
duke
parents:
diff changeset
188 _error = !os::getTimesSecs(&_starting_real_time,
a61af66fc99e Initial load
duke
parents:
diff changeset
189 &_starting_user_time,
a61af66fc99e Initial load
duke
parents:
diff changeset
190 &_starting_system_time);
a61af66fc99e Initial load
duke
parents:
diff changeset
191 }
a61af66fc99e Initial load
duke
parents:
diff changeset
192 }
a61af66fc99e Initial load
duke
parents:
diff changeset
193
a61af66fc99e Initial load
duke
parents:
diff changeset
194 TraceCPUTime::~TraceCPUTime() {
a61af66fc99e Initial load
duke
parents:
diff changeset
195 if (_active) {
a61af66fc99e Initial load
duke
parents:
diff changeset
196 bool valid = false;
a61af66fc99e Initial load
duke
parents:
diff changeset
197 if (!_error) {
a61af66fc99e Initial load
duke
parents:
diff changeset
198 double real_secs; // walk clock time
a61af66fc99e Initial load
duke
parents:
diff changeset
199 double system_secs; // system time
a61af66fc99e Initial load
duke
parents:
diff changeset
200 double user_secs; // user time for all threads
a61af66fc99e Initial load
duke
parents:
diff changeset
201
a61af66fc99e Initial load
duke
parents:
diff changeset
202 double real_time, user_time, system_time;
a61af66fc99e Initial load
duke
parents:
diff changeset
203 valid = os::getTimesSecs(&real_time, &user_time, &system_time);
a61af66fc99e Initial load
duke
parents:
diff changeset
204 if (valid) {
a61af66fc99e Initial load
duke
parents:
diff changeset
205
a61af66fc99e Initial load
duke
parents:
diff changeset
206 user_secs = user_time - _starting_user_time;
a61af66fc99e Initial load
duke
parents:
diff changeset
207 system_secs = system_time - _starting_system_time;
a61af66fc99e Initial load
duke
parents:
diff changeset
208 real_secs = real_time - _starting_real_time;
a61af66fc99e Initial load
duke
parents:
diff changeset
209
a61af66fc99e Initial load
duke
parents:
diff changeset
210 _logfile->print(" [Times: user=%3.2f sys=%3.2f, real=%3.2f secs] ",
a61af66fc99e Initial load
duke
parents:
diff changeset
211 user_secs, system_secs, real_secs);
a61af66fc99e Initial load
duke
parents:
diff changeset
212
a61af66fc99e Initial load
duke
parents:
diff changeset
213 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
214 _logfile->print("[Invalid result in TraceCPUTime]");
a61af66fc99e Initial load
duke
parents:
diff changeset
215 }
a61af66fc99e Initial load
duke
parents:
diff changeset
216 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
217 _logfile->print("[Error in TraceCPUTime]");
a61af66fc99e Initial load
duke
parents:
diff changeset
218 }
7207
0f80645e9c26 8004170: G1: Verbose GC output is not getting flushed to log file using JDK 8
johnc
parents: 6842
diff changeset
219 if (_print_cr) {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
220 _logfile->print_cr("");
a61af66fc99e Initial load
duke
parents:
diff changeset
221 }
7207
0f80645e9c26 8004170: G1: Verbose GC output is not getting flushed to log file using JDK 8
johnc
parents: 6842
diff changeset
222 _logfile->flush();
0
a61af66fc99e Initial load
duke
parents:
diff changeset
223 }
a61af66fc99e Initial load
duke
parents:
diff changeset
224 }