Mercurial > hg > truffle
diff src/share/vm/utilities/ostream.hpp @ 11136:dbc0b5dc08f5
7143807: ResourceMark nesting problem in stringStream
Reviewed-by: kvn, dcubed
author | fparain |
---|---|
date | Wed, 10 Jul 2013 15:49:15 +0000 |
parents | e12c9b3740db |
children | 621eda7235d2 |
line wrap: on
line diff
--- a/src/share/vm/utilities/ostream.hpp Tue Jul 09 22:48:52 2013 +0200 +++ b/src/share/vm/utilities/ostream.hpp Wed Jul 10 15:49:15 2013 +0000 @@ -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 @@ 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);