RFR: 8354558: -XX:AOTMode=record crashes with boot loader package-info class [v3]

Matias Saavedra Silva matsaave at openjdk.org
Wed Apr 23 22:00:56 UTC 2025


On Wed, 23 Apr 2025 20:29:52 GMT, Ioi Lam <iklam at openjdk.org> wrote:

>> When a package is loaded from `-Xbootclasspath/a:`, its `package-info` class is loaded by a special loader of the type `jdk/internal/loader/ClassLoaders$BootClassLoader`. The AOT cache doesn't handle such loaders, so we should just drop such classes from the cache.
>
> Ioi Lam has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
> 
>  - Merge branch 'master' into 8354558-aotmode-create-crashes-with-generated-package-info-class
>  - @calvinccheung comments
>  - 8354558: -XX:AOTMode=record crashes with boot loader package-info class

LGTM!

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

Marked as reviewed by matsaave (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/24710#pullrequestreview-2788763735


More information about the hotspot-dev mailing list