RFR: 8365407: Race condition in MethodTrainingData::verify() [v4]
Igor Veresov
iveresov at openjdk.org
Thu Aug 21 17:47:52 UTC 2025
On Thu, 21 Aug 2025 16:47:02 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> Igor Veresov has updated the pull request incrementally with one additional commit since the last revision:
>>
>> More cleanup
>
> src/hotspot/share/runtime/java.cpp line 522:
>
>> 520: if (AOTVerifyTrainingData) {
>> 521: EXCEPTION_MARK;
>> 522: CompilationPolicy::wait_replay_training_at_init(THREAD);
>
> It is called on VM exit but name is `_at_init`. May be drop that from name.
That's because `at_init` comes from `class initialization` events servicing. Those are enqueued after the class initialization is done. So, yes, it's at the shutdown, but the processing of class initializations is still happening.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26866#discussion_r2291750973
More information about the hotspot-dev
mailing list