RFR: 8354558: -XX:AOTMode=record crashes with boot loader package-info class [v2]
SendaoYan
syan at openjdk.org
Sat Apr 19 15:26:42 UTC 2025
On Fri, 18 Apr 2025 03:55:46 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 incrementally with one additional commit since the last revision:
>
> @calvinccheung comments
Changes requested by syan (Committer).
test/hotspot/jtreg/runtime/cds/appcds/aotCache/PackageInfoClass.java line 36:
> 34: * @run driver jdk.test.lib.helpers.ClassFileInstaller -jar boot.jar foo.Foo foo.package-info foo.MyAnnotation
> 35: * @run driver jdk.test.lib.helpers.ClassFileInstaller -jar app.jar PackageInfoClassApp
> 36: * @run driver PackageInfoClass AOT
Should we use `@run main` instead of `@run driver`
The `AOT` args for PackageInfoClass, seems do not use in main function?
-------------
PR Review: https://git.openjdk.org/jdk/pull/24710#pullrequestreview-2780003448
PR Review Comment: https://git.openjdk.org/jdk/pull/24710#discussion_r2051506997
More information about the hotspot-dev
mailing list