JDK-8350209 : Preserve adapters in AOT cache
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 25
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-02-17
  • Updated: 2025-05-21
  • Resolved: 2025-05-01
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 b22Fixed
Related Reports
Blocks :  
Blocks :  
Causes :  
Causes :  
Causes :  
Causes :  
Duplicate :  
Relates :  
Relates :  
Description
JEP 483  (JDK-8315737) preserves class information in AOT cache which help startup performance.
We should also preserve adapters (i2c, c2i) to avoid generation during startup.
Comments
Changeset: aae2bb62 Branch: master Author: Vladimir Kozlov <kvn@openjdk.org> Date: 2025-05-01 21:03:24 +0000 URL: https://git.openjdk.org/jdk/commit/aae2bb62499855e3da33c06547d437e49c91a14b
01-05-2025

Targeting JDK 25.
21-04-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/24740 Date: 2025-04-17 19:11:47 +0000
17-04-2025

Original development draft PR: https://github.com/openjdk/jdk/pull/24158
17-04-2025

We also need to preserve some code blobs, subs used by adapters.
21-02-2025

This RFE is fro porting changes from leyden/premain repo: https://github.com/openjdk/leyden/pull/25 and https://github.com/openjdk/leyden/pull/39 In addition to those changes we need to port main functionality for caching compiled code (at least for adapters): https://github.com/openjdk/leyden/blob/premain/src/hotspot/share/code/SCCache.hpp
17-02-2025