RFR: 8303942: os::write should write completely [v5]

David Holmes dholmes at openjdk.org
Tue May 9 01:03:29 UTC 2023


On Mon, 8 May 2023 12:09:40 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

>> The `os::write` itself writes in a loop.
>
> Yes, but only loops INT_MAX now?

@mgronlun why does this code break the write up into INT_MAX chunks? Is the incoming `len` parameter really potentially not containable in a `size_t`? Using `intptr_t` for a length seems suspect.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13750#discussion_r1188015214


More information about the hotspot-dev mailing list