On Fri, 19 Dec 2025 12:45:27 GMT, David Holmes <[email protected]> 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

Reply via email to