mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
7143807: ResourceMark nesting problem in stringStream
Reviewed-by: kvn, dcubed
This commit is contained in:
parent
de0c86b0b4
commit
c716fa083c
5 changed files with 39 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue