RFR: 8371048: ImageFileReader::open fails to check return value of osSupport::map_memory

Jaikiran Pai jpai at openjdk.org
Thu Nov 6 07:03:01 UTC 2025


On Fri, 31 Oct 2025 14:00:38 GMT, Justin King <jcking at openjdk.org> wrote:

> Check whether `osSupport::map_memory` actually succeeded in all compliation modes, instead of crashing shortly after in non-debug builds. Ideally we should fall back to just reading the entire file into memory manually or use seek+read, but this is good enough for now to avoid crashing.

Hello Justin, `jimage` code is maintained in core-libs area. I have added now that label to this PR.

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

PR Comment: https://git.openjdk.org/jdk/pull/28087#issuecomment-3495396990


More information about the core-libs-dev mailing list