RFR: 8369944: Notification can be lost due to interrupt in Object.wait

Patricio Chilano Mateo pchilanomate at openjdk.org
Fri Oct 17 15:24:50 UTC 2025


On Fri, 17 Oct 2025 02:38:13 GMT, David Holmes <dholmes at openjdk.org> wrote:

> > This could have been a timed-wait that timed-out, and only after that, the thread was interrupted
> 
> This is a feature not a bug. It is preferable to return via IE if the interrupt was detected, even if we originally timed-out of the wait itself.
>
I see, I thought IE should be thrown only if the thread was removed from the wait set by the interruption. But I guess that’s just the mandatory case and this behavior is not ruled out.

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

PR Comment: https://git.openjdk.org/jdk/pull/27856#issuecomment-3416024200


More information about the hotspot-runtime-dev mailing list