RFR: 8351484: Race condition in max stats in MonitorList::add [v2]
Aleksey Shipilev
shade at openjdk.org
Mon Mar 10 19:37:21 UTC 2025
On Mon, 10 Mar 2025 19:32:52 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:
>> Aleksey Shipilev has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - Can check <=
>> - Object handle
>
> src/hotspot/share/runtime/synchronizer.cpp line 83:
>
>> 81: do {
>> 82: old_max = Atomic::load(&_max);
>> 83: if (count < old_max) {
>
> Can breakout when `count == old_max`
Right! Fixed.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23961#discussion_r1987905363
More information about the hotspot-runtime-dev
mailing list