RFR: 8320318: ObjectMonitor Responsible thread [v3]

Erik Österlund eosterlund at openjdk.org
Mon Sep 23 10:14:51 UTC 2024


On Wed, 18 Sep 2024 20:53:58 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:

>> Fredrik Bredberg has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update two, after the review
>
> 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.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19454#discussion_r1771102939


More information about the hotspot-dev mailing list