RFR: 8355003: Implement Ahead-of-Time Method Profiling
Igor Veresov
iveresov at openjdk.org
Sat Apr 26 23:46:47 UTC 2025
On Sat, 26 Apr 2025 21:28:12 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> Improve warm-up time by making profile data from a previous run of an application instantly available, when the HotSpot Java Virtual Machine starts. Specifically, enhance the [AOT cache](https://openjdk.org/jeps/483) to store method execution profiles from training runs, reducing profiling delays in subsequent production runs.
>>
>> More details in the JEP: https://bugs.openjdk.org/browse/JDK-8325147
>
> src/hotspot/share/oops/methodData.cpp line 1434:
>
>> 1432:
>> 1433: bool MethodData::is_mature() const {
>> 1434: return CompilationPolicy::is_mature((MethodData*)this);
>
> Why you need the cast?
To remove constness. I'll make it a const_cast.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24886#discussion_r2061843635
More information about the hotspot-compiler-dev
mailing list