RFR: 8316156: (ch) Channels.newOutputStream(ch).write(bigByteArray) allocates a lot of direct memory [v2]

Brian Burkhalter bpb at openjdk.org
Thu Sep 14 16:22:42 UTC 2023


On Thu, 14 Sep 2023 15:57:37 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> In `ChannelInputStream` and `ChannelOutputStream`, process small chunks of bytes in sequence to avoid running afoul of the `MaxDirectMemorySize`.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8316156: Address reviewer comments

Perhaps the test should be refactored to test `read` and `write` separately?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15733#issuecomment-1719761549


More information about the nio-dev mailing list