RFR: 8373839: Disable JVM TI suspension during JNI critical regions
David Holmes
dholmes at openjdk.org
Mon Dec 22 01:34:55 UTC 2025
On Fri, 19 Dec 2025 13:19:22 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:
> We don't need to check for a specific operation, we can make it general by defining a virtual method in `HandshakeClosure` (e.g. `needs_jni_critical_check`) that's overriden by any operation that requires this check.
That isn't really any better to me. The general purpose handshake code should not have to be JNI-critical aware.
That aside I'm also struggling to see how we make the originator thread block when the target thread executes the handshake operation code.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28884#issuecomment-3679933261
More information about the serviceability-dev
mailing list