[11u] RFR 8224487: outputStream should not be copyable

Thomas Stüfe thomas.stuefe at gmail.com
Thu Jun 13 16:29:02 UTC 2019

Hi all,

I would like to backport to 11u


It is a precondition to backport three other fixes surrounding
-  https://bugs.openjdk.java.net/browse/JDK-8224193 (stringStream should
not use Resource Area)
-  https://bugs.openjdk.java.net/browse/JDK-8220394 (bufferedStream does
not honor size limit)
- https://bugs.openjdk.java.net/browse/JDK-8225225 (stringStream internal
buffer should always be zero terminated)

Original RFR discussion:
Original patch: http://hg.openjdk.java.net/jdk/jdk/rev/0927d8c7296f

Full patch (with 11u corrections):
Delta to original patch:

The patch disables copy and assignment on outputStream child classes, since
this has been a source of errors (unintended sharing of the stream backing
buffer between two instances of stringStream, for instance). It fixes all
resulting build errors - which mostly indicate real errors.

Patch did not apply cleanly since 11u misses some work in the event log
Coleen did in 12, and a small change Lutz Schmidt did for the code heap

Thanks for the review.

Cheers, Thomas

More information about the jdk-updates-dev mailing list