RFR: JDK-8297298 - SequenceInputStream should override transferTo
Markus KARG
duke at openjdk.org
Sun Nov 20 09:41:48 UTC 2022
On Sun, 20 Nov 2022 07:30:15 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> I might be mistaken, but that vector is not temporary: the vector and the enumeration produced from it seems to be reachable for as long as the stream is. Both the enumeration and the vector are synchronized. That synchronization might provide implicit (JMM) visibility for some stream users.
I do not see that this behavior was intended by the original author of SIS, or that an existing application could be depending on that behavior.
-------------
PR: https://git.openjdk.org/jdk/pull/11248
More information about the core-libs-dev
mailing list