RFR: 8316156: ByteArrayInputStream.transferTo causes MaxDirectMemorySize overflow [v6]
Brian Burkhalter
bpb at openjdk.org
Tue Sep 19 20:08:41 UTC 2023
On Tue, 19 Sep 2023 20:03:57 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: Revert BufferedInputStream changes; update test
This PR is now limited to `ByteArrayInputStream`. The use of `InputStream.transferTo` in `Files.copy(InputStream,Path)` and `Files.copy(Path,Outputstream)` can be investigated in the context of a different issue.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15733#issuecomment-1726396665
More information about the nio-dev
mailing list