RFR: 8257831: Suspend with handshakes [v2]
Robbin Ehn
rehn at openjdk.java.net
Wed Apr 7 13:01:20 UTC 2021
On Wed, 31 Mar 2021 05:44:35 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> Robbin Ehn has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains two commits:
>>
>> - Merge branch 'master' into SuspendInHandshake
>> - 8257831: Suspend with handshake (review baseline)
>
> src/hotspot/share/runtime/handshake.cpp line 677:
>
>> 675: } else {
>> 676: // Target is going to wake up and leave suspension.
>> 677: // Let's just stop the thread from doing that.
>
> IIUC this would be the case where the target was hit with a suspend request but has not yet processed the actual suspension handshake op, then a resume comes in so suspended is no longer true, and then another suspend request is made (this one) which simply turns the suspended flag back on - is that right?
> Overall I'm finding it very hard to see what the two suspend state flags actually signify. I'd like to see that written up somewhere.
Sure
-------------
PR: https://git.openjdk.java.net/jdk/pull/3191
More information about the hotspot-runtime-dev
mailing list