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

Reply via email to