RFR: 8365407: Race condition in MethodTrainingData::verify() [v6]

Vladimir Kozlov kvn at openjdk.org
Fri Aug 22 22:37:52 UTC 2025


On Fri, 22 Aug 2025 20:20:25 GMT, Igor Veresov <iveresov at openjdk.org> wrote:

>> src/hotspot/share/compiler/compilationPolicy.cpp line 192:
>> 
>>> 190: 
>>> 191: void CompilationPolicy::replay_training_at_init_loop(JavaThread* current) {
>>> 192:   while (!CompileBroker::is_compilation_disabled_forever() || AOTVerifyTrainingData) {
>> 
>> Will it loop forever with `+ AOTVerifyTrainingData` ?
>
> Yes, it runs in a dedicated thread. It doesn't need to terminate.

Add comment about this.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26866#discussion_r2294873607


More information about the hotspot-dev mailing list