RFR: 8366659: ObjectMonitor::wait() liveness problem with a suspension request [v26]

Daniel D. Daugherty dcubed at openjdk.org
Tue Jan 20 20:34:38 UTC 2026


On Tue, 20 Jan 2026 18:56:54 GMT, Daniel D. Daugherty <dcubed at openjdk.org> wrote:

>> Anton Artemov has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8366659: Fixed whitespace.
>
> src/hotspot/share/runtime/objectMonitor.cpp line 1869:
> 
>> 1867: 
>> 1868:   int ret = OS_OK;
>> 1869:   bool was_notified = true;
> 
> L2021: // Monitor notify has precedence over thread interrupt.
> 
> With this change to `was_notified` default value, I don't think we can say
> that monitor notify has precedence over thread interrupt anymore.

I've tracked that comment back to this very old changeset:


$ git log 22929fb78f46^!
commit 22929fb78f4606f726b652a25772980336398575
Author: Karen Kinnear <acorn at openjdk.org>
Date:   Fri Oct 22 15:59:34 2010 -0400

    6988353: refactor contended sync subsystem
    
    Reduce complexity by factoring synchronizer.cpp
    
    Reviewed-by: dholmes, never, coleenp

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27040#discussion_r2709973474


More information about the hotspot-runtime-dev mailing list