RFR: 8373839: Disable JVM TI suspension during JNI critical regions

David Holmes dholmes at openjdk.org
Fri Dec 19 13:02:28 UTC 2025


On Fri, 19 Dec 2025 11:18:50 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:

> I was thinking on having a in_critical() check in HandshakeState::try_process when the op returned by get_op() is `SuspendThreadHandshakeClosure`

Checking the generic handshake code for a specific handshake operation seems like a horrendous hack - that code should never have to specialize based on the operation. The operation should handle any special cases.

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

PR Comment: https://git.openjdk.org/jdk/pull/28884#issuecomment-3674993065


More information about the serviceability-dev mailing list