hotspot/src/share/vm/utilities/debug.cpp
changeset 13393 f0344cc50a90
parent 11788 bef6166c683c
child 13728 882756847a04
--- a/hotspot/src/share/vm/utilities/debug.cpp	Fri Jul 27 16:14:15 2012 -0700
+++ b/hotspot/src/share/vm/utilities/debug.cpp	Mon Jul 30 09:49:25 2012 -0700
@@ -91,6 +91,13 @@
 #  endif
 #endif // PRODUCT
 
+FormatBufferResource::FormatBufferResource(const char * format, ...)
+  : FormatBufferBase((char*)resource_allocate_bytes(RES_BUFSZ)) {
+  va_list argp;
+  va_start(argp, format);
+  jio_vsnprintf(_buf, RES_BUFSZ, format, argp);
+  va_end(argp);
+}
 
 void warning(const char* format, ...) {
   if (PrintWarnings) {