Skip to content

Teach witness thunks to hop to the actor when needed #59456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

DougGregor
Copy link
Member

When a synchronous, actor-isolated declaration witnesses an
asynchronous, not-similarly-isolated requirement, emit an actor hop
within the witness thunk to ensure that we properly enter the context
of the actor.

When the witness is distributed, we go through the distributed thunk
rather than hopping to the actor.

Fixes #58517 / rdar://92881539.

When a synchronous, actor-isolated declaration witnesses an
asynchronous, not-similarly-isolated requirement, emit an actor hop
within the witness thunk to ensure that we properly enter the context
of the actor.

Fixes swiftlang#58517 / rdar://92881539.

(cherry picked from commit 25a7988)
…hunk

We cannot hop to a distributed actor directly, so call through the
distributed thunk instead.

(cherry picked from commit 840b7ea)
@DougGregor DougGregor requested a review from a team as a code owner June 15, 2022 04:26
@DougGregor
Copy link
Member Author

@swift-ci please test

@ktoso
Copy link
Contributor

ktoso commented Jun 15, 2022

I'll merge then, the sooner it's in the sooner we get it in a nightly docker image for our CI systems <3

@ktoso ktoso merged commit 33818ff into swiftlang:release/5.7 Jun 15, 2022
@DougGregor DougGregor deleted the actor-isolated-sync-witness-5.7 branch June 15, 2022 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants