RFR: 8303942: FileMapInfo::write_bytes aborts on a short os::write
Vladimir Kozlov
kvn at openjdk.org
Mon Apr 3 19:51:57 UTC 2023
On Mon, 3 Apr 2023 13:10:50 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> Until last week when I read these bugs, I didn't realize `os::write()` could not write the entire requested size. I'd like os::write() to do that and if there's ever a case of needing a partial write, add a separately awkwardly named os::write_partial(). os::write should be the non-exceptional case so it's not used by mistake if there ever was the exceptional case needed. Maybe use os::write_partial() for the JFR case and file a separate bug for that to use os::write properly.
I fully support this suggestion. I am using `os::write()` in my current project and I don't want any surprises from it!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13188#issuecomment-1494885583
More information about the hotspot-runtime-dev
mailing list