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

Igor Veresov iveresov at openjdk.org
Thu Aug 21 03:00:12 UTC 2025


On Thu, 21 Aug 2025 02:31:40 GMT, Igor Veresov <iveresov at openjdk.org> wrote:

>> src/hotspot/share/compiler/compilationPolicy.cpp line 141:
>> 
>>> 139: }
>>> 140: 
>>> 141:  void CompilationPolicy::flush_replay_training_at_init(TRAPS) {
>> 
>> This method seems to be waiting for something to finish, not "flushing" anything itself.
>
> It has a semantic effect of flushing the queue... What would you like it to be renamed to?

I'll rename it to `wait`.

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

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


More information about the hotspot-dev mailing list