RFR: 8373839: Disable JVM TI suspension during JNI critical regions [v2]

Patricio Chilano Mateo pchilanomate at openjdk.org
Fri Dec 19 13:23:20 UTC 2025


On Fri, 19 Dec 2025 12:50:12 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> We already checked for current thread in `SuspendResumeManager::suspend` and took a different path before calling this.
>
> But I am forgetting how handshakes operate in general - I don't know whether the handshakee or the handshaker will execute the actual `do_thread` operation.

> We already checked for current thread in `SuspendResumeManager::suspend` and took a different path before calling this.
>
Right, but that's only if the thread requested to suspend itself, not when the request is from a different thread.

> But I am forgetting how handshakes operate in general - I don't know whether the handshakee or the handshaker will execute the actual do_thread operation.
>
Except for async hanshakes, a hanshake could be executed by either one. Even from another thread trying to handshake the same target.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28884#discussion_r2635080415


More information about the serviceability-dev mailing list