Mercurial > hg > graal-compiler
comparison src/share/vm/utilities/ostream.cpp @ 360:5d254928c888
Merge
author | ysr |
---|---|
date | Wed, 27 Aug 2008 11:20:46 -0700 |
parents | 1ee8caae33af |
children | 2328d1d3f8cf |
comparison
equal
deleted
inserted
replaced
341:d60e4e6d7f72 | 360:5d254928c888 |
---|---|
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) { |