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

David Holmes dholmes at openjdk.org
Thu Jan 22 04:56:10 UTC 2026


On Thu, 22 Jan 2026 04:50:05 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> 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.

Though it would be clearer to just have:

1869   bool was_notified = true;

and delete line 1907.

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

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


More information about the hotspot-runtime-dev mailing list