RFR: 8274548: (fc) FileChannel gathering write fails with IOException "Invalid argument" on macOS 11.6
Alan Bateman
alanb at openjdk.java.net
Wed Oct 6 06:55:06 UTC 2021
On Wed, 6 Oct 2021 00:00:00 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> On macOS, handle the case where `writev()` is given an array of `struct iovec` the sum of whose `iov_len` fields overflows `INT_MAX`.
We really need someone from Apple here to tell us if this is a man page issue or a bug in macOS 11.6. If I read it correctly, the issue doesn't occur with 10.5.x and the best of macOS 12, is that correct? If we do need to put a workaround in for this then I think it will need an overhaul of IOUtil first. I'd prefer not have the iovec array be modified in two places.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5831
More information about the nio-dev
mailing list