RFR: 8320318: ObjectMonitor Responsible thread [v2]
Fredrik Bredberg
fbredberg at openjdk.org
Wed Sep 18 18:29:24 UTC 2024
On Tue, 17 Sep 2024 13:18:39 GMT, Fredrik Bredberg <fbredberg at openjdk.org> wrote:
>> src/hotspot/share/runtime/objectMonitor.cpp line 1224:
>>
>>> 1222: // falls to the new owner.
>>> 1223: //
>>> 1224: void* owner = try_set_owner_from(nullptr, current);
>>
>> Is this the same code as TryLock now? Except a little different... Could this call TryLock and return if the lock becomes owned by another thread, like in SharedRuntime::monitor_exit_helper() ?
>
> It seems it can call TryLock, which was also pointed out by @pchilano. Thanks for also spotting this.
fixed
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19454#discussion_r1765517473
More information about the hotspot-dev
mailing list