On Thu, 22 Jan 2026 03:35:10 GMT, Patricio Chilano Mateo 
<[email protected]> wrote:

>> This should be:
>> 
>> was_notified = node.TState == ObjectWaiter::TS_RUN || node.TState == 
>> ObjectWaiter::TS_ENTER;
>> 
>> and no need to adjust to false below (as it will already be false).
>
> Note that if the thread was interrupted the state will be `TS_WAIT` here, so 
> `was_notified ` will be set to false. If the thread was interrupted and 
> notified we consider it a notification case (even if the unpark was due to 
> the interrupt).

Thanks @pchilano . Apologies @toxaart the diff view confused me and I got 
things muddled up with when we accidently gave interrupt priority over 
notification.

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

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

Reply via email to