stringStream::as_string() creates a copy of the backing memory inside the stream to return the printout to the caller.
stringStream's internal buffer already contains the printed string and it is guaranteed to be zero terminated. So in a large number of places using this buffer directly instead of calling stringStream::as_string() is more efficient.
stringStream's internal buffer already contains the printed string and it is guaranteed to be zero terminated. So in a large number of places using this buffer directly instead of calling stringStream::as_string() is more efficient.
- relates to
-
JDK-8224193 stringStream should not use Resource Area
-
- Resolved
-
-
JDK-8225225 stringStream internal buffer should always be zero terminated
-
- Resolved
-
-
JDK-8224213 various stringStream issues
-
- Closed
-