RFR: 8354887: Preserve runtime blobs in AOT code cache [v3]

Ashutosh Mehra asmehra at openjdk.org
Mon May 12 18:24:30 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`.

Ashutosh Mehra has updated the pull request incrementally with two additional commits since the last revision:

 - Add test for using AOTCodeCache with different CompressedOops
   configuration
   
   Signed-off-by: Ashutosh Mehra <asmehra at redhat.com>
 - Add check for compressed oops base address; minor refacotring
   
   Signed-off-by: Ashutosh Mehra <asmehra at redhat.com>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25019/files
  - new: https://git.openjdk.org/jdk/pull/25019/files/ba612dab..9fcc91b3

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

  Stats: 233 lines in 5 files changed: 202 ins; 14 del; 17 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-compiler-dev mailing list