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

Ioi Lam iklam at openjdk.org
Thu Apr 17 04:31:19 UTC 2025


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.

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

Commit messages:
 - 8354558: -XX:AOTMode=record crashes with boot loader package-info class

Changes: https://git.openjdk.org/jdk/pull/24710/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24710&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8354558
  Stats: 118 lines in 5 files changed: 104 ins; 2 del; 12 mod
  Patch: https://git.openjdk.org/jdk/pull/24710.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24710/head:pull/24710

PR: https://git.openjdk.org/jdk/pull/24710


More information about the hotspot-dev mailing list