On Tue, 11 Aug 2026 23:10:00 GMT, Igor Veresov <[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).
>
> src/hotspot/share/c1/c1_LIRGenerator.cpp line 3852:
> 
>> 3850:     if (AOTCodeCache::is_dumping_code()) {
>> 3851:       counter_holder = new_register(T_METADATA);
>> 3852:       __ metadata2reg(counters_adr->constant_encoding(), 
>> counter_holder);
> 
> I think we can do this in the general case as well. No only with 
> `AOTCodeCache::is_dumping_code()`.

Thank you, @veresov. I will file RFE for mainline.

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

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

Reply via email to