On Sun, 4 Oct 2026 02:09:46 GMT, Vladimir Kozlov <[email protected]> wrote:

>> Improve startup and warmup time by making optimized native code for an 
>> application instantly available when the HotSpot Java Virtual Machine 
>> starts. Achieve this by compiling application code to native code in a 
>> training run, storing the native code in the [AOT 
>> cache](https://openjdk.org/jeps/483#Description) for use in subsequent 
>> production runs.
>> 
>> More details in the [JEP](https://openjdk.org/jeps/544).
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Vladimir Kozlov has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Add support for PrintC1Statistics. Disable PrintLockStatistics for AOT 
> compilation.

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

> 246: //    found in the AOT cache, but they are always OK to regenerate.  
> Some stubs are
> 247: //    optional, in which case their array slots could be empty (null), 
> and then you
> 248: //    get a fatal crash if you try to refer to one.

Suggestion:

//    get a fatal crash if you try to refer to one. Consistency
//    of stub presence/absence and stub (code) format and content
//    between assembly and production runs should be guaranteed
//    by checks which enforce compatible command line compiler and
//    runtime configuration options across those runs. Missing
//    checks or incorrect assumptions regarding compatibility may
//    also lead to a crash.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/30778#discussion_r4182577132

Reply via email to