< prev index next >
src/share/vm/utilities/debug.cpp
Print this page
rev 13108 : imported patch move_format_buffer
@@ -50,10 +50,11 @@
#include "runtime/vframe.hpp"
#include "runtime/vm_version.hpp"
#include "services/heapDumper.hpp"
#include "utilities/defaultStream.hpp"
#include "utilities/events.hpp"
+#include "utilities/formatBuffer.hpp"
#include "utilities/macros.hpp"
#include "utilities/vmError.hpp"
#include <stdio.h>
@@ -79,18 +80,10 @@
# if -defined _DEBUG || -defined ASSERT
configuration error: ASSERT et al. must not be defined in PRODUCT version
# endif
#endif // PRODUCT
-FormatBufferResource::FormatBufferResource(const char * format, ...)
- : FormatBufferBase((char*)resource_allocate_bytes(FormatBufferBase::BufferSize)) {
- va_list argp;
- va_start(argp, format);
- jio_vsnprintf(_buf, FormatBufferBase::BufferSize, format, argp);
- va_end(argp);
-}
-
ATTRIBUTE_PRINTF(1, 2)
void warning(const char* format, ...) {
if (PrintWarnings) {
FILE* const err = defaultStream::error_stream();
jio_fprintf(err, "%s warning: ", VM_Version::vm_name());
< prev index next >