RFR: 8306324: StopThread results in thread being marked as interrupted, leading to unexpected InterruptedException [v7]

David Holmes dholmes at openjdk.org
Sat Aug 2 07:05:59 UTC 2025


On Fri, 1 Aug 2025 09:42:43 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

> David, do you have any concerns or suggestions? Should I wait for your approval?

Sorry I was out of action for a couple of days. I'm happy to see the change to `sleep_nanos` restored. The change seems fine in the current state.

Though I have to wonder if there is any other non-directly-interruptible native blocking I/O operation that directly checks the interrupt flag and thus would see the stop request that way. Need to see if any Java library native code uses JNI to check the interrupt state.

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

PR Comment: https://git.openjdk.org/jdk/pull/26365#issuecomment-3146280109


More information about the serviceability-dev mailing list