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

David Beaumont duke at openjdk.org
Mon Nov 3 12:05:10 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.

Assuming there are no other calls to this API passing "", this is what I imagined should be done.

src/hotspot/share/classfile/classLoader.cpp line 415:

> 413: ClassFileStream* ClassPathImageEntry::open_stream_for_loader(JavaThread* current, const char* name, ClassLoaderData* loader_data) {
> 414:   jlong size;
> 415:   JImageLocationRef location;

Maybe set to null explicitly here to indicate we know there are code paths which leave the initial value untouched.

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

PR Review: https://git.openjdk.org/jdk/pull/28098#pullrequestreview-3410683774
PR Review Comment: https://git.openjdk.org/jdk/pull/28098#discussion_r2486231932


More information about the hotspot-runtime-dev mailing list