comparison src/share/vm/utilities/ostream.cpp @ 362:f8199438385b

Merge
author apetrusenko
date Wed, 17 Sep 2008 16:49:18 +0400
parents 1ee8caae33af
children 2328d1d3f8cf
comparison
equal deleted inserted replaced
316:5fa96a5a7e76 362:f8199438385b
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) {