RFR: 8373366: HandshakeState should disallow suspend ops for disabler threads [v12]

Serguei Spitsyn sspitsyn at openjdk.org
Fri Jan 16 05:40:45 UTC 2026


On Fri, 16 Jan 2026 00:44:39 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:

> Looking at the newly filed [JDK-8375362](https://bugs.openjdk.org/browse/JDK-8375362) I see the problem is the same one described in this PR, it's just that the suspend checkpoint is not in the handshake processing logic but in MountUnmountDisabler::start_transition. So maybe it would make sense to fix them both here?

Good suggestion, thanks! I was thinking about the same. Okay will push an update for [JDK-8375362](https://bugs.openjdk.org/browse/JDK-8375362) here.

> BTW, looking at JvmtiEnv::InterruptThread, do we really need the disabler? Thread.interrupt() could be called directly from Java and we don't disable transitions on the target.

Thank you for the suggestion! I've tried it and got many failures of the tests depending on JVMTI `InterruptThread`.

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

PR Comment: https://git.openjdk.org/jdk/pull/28740#issuecomment-3758262690


More information about the hotspot-runtime-dev mailing list