7143807: ResourceMark nesting problem in stringStream

Reviewed-by: kvn, dcubed
This commit is contained in:
Frederic Parain 2013-07-10 15:49:15 +00:00
parent de0c86b0b4
commit c716fa083c
5 changed files with 39 additions and 1 deletions

View file

@ -28,6 +28,8 @@
#include "memory/allocation.hpp"
#include "runtime/timer.hpp"
DEBUG_ONLY(class ResourceMark;)
// Output streams for printing
//
// Printing guidelines:
@ -177,6 +179,7 @@ class stringStream : public outputStream {
size_t buffer_pos;
size_t buffer_length;
bool buffer_fixed;
DEBUG_ONLY(ResourceMark* rm;)
public:
stringStream(size_t initial_bufsize = 256);
stringStream(char* fixed_buffer, size_t fixed_buffer_size);