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

David Holmes dholmes at openjdk.org
Fri Dec 19 12:53:12 UTC 2025


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

>> src/hotspot/share/runtime/suspendResumeManager.cpp line 64:
>> 
>>> 62:   }
>>> 63:   void do_thread(Thread* thr) {
>>> 64:     assert(thr != Thread::current(), "must be");
>> 
>> I think the target can execute this operation.
>
> 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.

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

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


More information about the hotspot-runtime-dev mailing list