RFR: 8346255: java/lang/management/ThreadMXBean/VirtualThreadDeadlocks.java finds no deadlock [v2]
Patricio Chilano Mateo
pchilanomate at openjdk.org
Fri May 9 15:07:57 UTC 2025
On Thu, 8 May 2025 21:59:18 GMT, David Holmes <dholmes at openjdk.org> wrote:
> > we don’t change the state to Thread.State.WAITING when using ObjectLocker and calling wait_uninterruptibly().
>
> No, because that is an internal implementation detail. It is a grey area. There is no such thing as an uninterruptible-wait in the Java language, so if we marked the thread as waiting and yet it failed to stop waiting if interrupted, then that would appear to be a bug.
>
I see, thanks for the clarification David.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25119#issuecomment-2866895215
More information about the serviceability-dev
mailing list