< prev index next >

src/share/vm/utilities/debug.cpp

Print this page
rev 13108 : imported patch move_format_buffer

*** 50,59 **** --- 50,60 ---- #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,96 **** # 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()); --- 80,89 ----
< prev index next >