RFR: 8316156: (ch) Channels.newOutputStream(ch).write(bigByteArray) allocates a lot of direct memory
Severin Gehwolf
sgehwolf at openjdk.org
Thu Sep 14 08:19:39 UTC 2023
On Thu, 14 Sep 2023 03:05:50 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`.
test/jdk/java/nio/channels/Channels/WriteFullyMemorySize.java line 26:
> 24: /* @test
> 25: * @bug 8316156
> 26: * @summary Ensure Channels.newOutputStream.write doe not overrun max memory
Typo: `does not` over `doe not`
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15733#discussion_r1325561423
More information about the nio-dev
mailing list