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

Vladimir Kozlov kvn at openjdk.org
Mon May 12 22:51:55 UTC 2025


On Mon, 12 May 2025 20:10:13 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:

>> [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:
> 
>  - Remove more unused code
>    
>    Signed-off-by: Ashutosh Mehra <asmehra at redhat.com>
>  - Fix whitespace issue. Remove unused code.
>    
>    Signed-off-by: Ashutosh Mehra <asmehra at redhat.com>

src/hotspot/share/code/aotCodeCache.hpp line 169:

> 167:   class Config {
> 168:     uint _compressedOopShift;
> 169:     address _compressedOopBase;

Put it fist to avoid gaps between fields.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25019#discussion_r2085638902


More information about the hotspot-compiler-dev mailing list