JDK-8351319 : AOT cache support for custom class loaders broken since JDK-8348426
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 25
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-03-06
  • Updated: 2025-04-10
  • Resolved: 2025-04-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25 b18Fixed
Related Reports
Causes :  
Description
Since 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.
Comments
Changeset: e3f26b05 Branch: master Author: Ioi Lam <iklam@openjdk.org> Date: 2025-04-09 20:57:15 +0000 URL: https://git.openjdk.org/jdk/commit/e3f26b056e6b8403e6744b8a4cf59ccf4d217d89
09-04-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/23926 Date: 2025-03-06 04:09:22 +0000
06-03-2025