Mercurial > hg > graal-jvmci-8
comparison src/share/vm/utilities/ostream.cpp @ 342:37f87013dfd8
6711316: Open source the Garbage-First garbage collector
Summary: First mercurial integration of the code for the Garbage-First garbage collector.
Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
author | ysr |
---|---|
date | Thu, 05 Jun 2008 15:57:56 -0700 |
parents | f96100ac3d12 |
children | fab5f738c515 |
comparison
equal
deleted
inserted
replaced
189:0b27f3512f9e | 342:37f87013dfd8 |
---|---|
184 // outputStream::stamp() may get called by ostream_abort(), use snprintf | 184 // outputStream::stamp() may get called by ostream_abort(), use snprintf |
185 // to avoid allocating large stack buffer in print(). | 185 // to avoid allocating large stack buffer in print(). |
186 char buf[40]; | 186 char buf[40]; |
187 jio_snprintf(buf, sizeof(buf), "%.3f", _stamp.seconds()); | 187 jio_snprintf(buf, sizeof(buf), "%.3f", _stamp.seconds()); |
188 print_raw(buf); | 188 print_raw(buf); |
189 } | |
190 | |
191 void outputStream::stamp(bool guard, | |
192 const char* prefix, | |
193 const char* suffix) { | |
194 if (!guard) { | |
195 return; | |
196 } | |
197 print_raw(prefix); | |
198 stamp(); | |
199 print_raw(suffix); | |
189 } | 200 } |
190 | 201 |
191 void outputStream::date_stamp(bool guard, | 202 void outputStream::date_stamp(bool guard, |
192 const char* prefix, | 203 const char* prefix, |
193 const char* suffix) { | 204 const char* suffix) { |