RFR: 8369838: Likely invalid assert or function call in jimage.cpp

David Beaumont duke at openjdk.org
Mon Nov 3 21:17:41 UTC 2025


On Sat, 1 Nov 2025 15:42:37 GMT, Henry Jen <henryjen at openjdk.org> wrote:

> JVM should not attempt to load resource without module name. All classes loaded from jimage by the bootclassloader should have mapped into a module.

jimage *can* return non module resources by the other API, which just takes the full jimage location path/name.
The module+name API is really just a slightly more efficient convenience for the case where the caller has both separately.

For reference, I'm writing a lot of changes around jimage stuff right now, and I don't think I've seen any case where an error code would be of any benefit, as opposed to just returning zero.

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

PR Comment: https://git.openjdk.org/jdk/pull/28098#issuecomment-3482634795


More information about the hotspot-runtime-dev mailing list