RFR: 8354887: Preserve runtime blobs in AOT code cache

Ashutosh Mehra asmehra at openjdk.org
Sat May 3 04:21:31 UTC 2025


[8350209](https://bugs.openjdk.org/browse/JDK-8350209) introduced the framework for storing code in aot code cache and used it for caching i2c/c2i adapters.
This PR extends the `AOTCodeCache` infrastructure and stores various runtime blobs (shared blobs, C1 and C2 runtime blobs) in the AOT code cache. It adds a new diagnostic flag `AOTStubCaching` to enable/disable the caching of these blobs.
`AOTCodeFlags.java` test is extended to cover `AOTStubCaching`.

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

Commit messages:
 - Remove irrelevant comment
 - Fix win64 compile failures
 - Fix AOTCodeFlags.java test
 - Fix compile failure in minimal config
 - Revert back changes that added AOTRuntimeConstants.
 - Fix merge conflicts
 - Store/load AsmRemarks and DbgStrings in aot code cache
 - Add missing external address in aarch64
 - 8354887: Preserve runtime blobs in AOT code cache

Changes: https://git.openjdk.org/jdk/pull/25019/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25019&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8354887
  Stats: 1048 lines in 22 files changed: 815 ins; 132 del; 101 mod
  Patch: https://git.openjdk.org/jdk/pull/25019.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25019/head:pull/25019

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


More information about the hotspot-runtime-dev mailing list