RFR: 8320318: ObjectMonitor Responsible thread [v3]
Fredrik Bredberg
fbredberg at openjdk.org
Wed Sep 25 14:18:56 UTC 2024
On Mon, 23 Sep 2024 10:00:16 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:
>> src/hotspot/share/runtime/objectMonitor.cpp line 396:
>>
>>> 394: // to use ObjectMonitor::try_enter() as a public way of doing TryLock().
>>> 395: // Used this way in SharedRuntime::monitor_exit_helper().
>>> 396: if (check_owner) {
>>
>> Probably preference but an early return here is easier for me to parse.
>
> I agree.
fixed
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19454#discussion_r1775312835
More information about the hotspot-dev
mailing list