RFR: 8351319: AOT cache support for custom class loaders broken since JDK-8348426 [v4]

Ioi Lam iklam at openjdk.org
Tue Apr 8 06:38:32 UTC 2025


> Since [JDK-8348426](https://bugs.openjdk.org/browse/JDK-8348426) (Generate binary file for -XX:AOTMode=record -XX:AOTConfiguration=file), the AOT cache no longer contains classes intended for custom class loaders (these are called "unregistered classes" in CDS terminology).
> 
> The fix is simple -- we already remember the set of unregistered classes in the AOT configuration file. We just need to add them into the final AOT cache (see changes in finalImageRecipes.cpp).

Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:

  Fixed (1) size/crc was not set so the SimpleCusty class was not loaded from cache; (2) cp->resolved_reference_length() was not set correctly

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/23926/files
  - new: https://git.openjdk.org/jdk/pull/23926/files/ccea0a41..c02a611e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=23926&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23926&range=02-03

  Stats: 81 lines in 6 files changed: 70 ins; 0 del; 11 mod
  Patch: https://git.openjdk.org/jdk/pull/23926.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23926/head:pull/23926

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


More information about the hotspot-dev mailing list