RFR: 8316156: (ch) Channels.newOutputStream(ch).write(bigByteArray) allocates a lot of direct memory [v5]
Alan Bateman
alanb at openjdk.org
Tue Sep 19 14:02:43 UTC 2023
On Tue, 19 Sep 2023 12:59:37 GMT, Paul Wagland <duke at openjdk.org> wrote:
> Thanks for this answer. The challenge is that we are very dependent on the specific implementation of the input streams `transferTo` method. Specifically, the default implementation is perfectly fine, the one in (the old) BAIS caused us issues.
The BAIS.transferTo implementation was a bit naive so it's useful to re-visit this.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15733#issuecomment-1725646174
More information about the nio-dev
mailing list