Skip to content

Properly erase closure isolation to @isolated(any) #71904

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
merged 2 commits into from
Feb 27, 2024

Conversation

rjmccall
Copy link
Contributor

We do this by pushing the conversion down to the emission of the closure expression, then teaching closure emission to apply the isolation to the closure. Ideally, we combine the isolation along with the rest of the conversion peephole, but if necessary, we make sure we peephole at least the isolation.

@rjmccall
Copy link
Contributor Author

@swift-ci Please test

We do this by pushing the conversion down to the emission of the
closure expression, then teaching closure emission to apply the isolation
to the closure.  Ideally, we combine the isolation along with the rest of
the conversion peephole, but if necessary, we make sure we emit the
isolation.
@rjmccall rjmccall force-pushed the isolated-any-closures branch from b725490 to cecf041 Compare February 27, 2024 03:51
@rjmccall
Copy link
Contributor Author

@swift-ci Please test

@rjmccall rjmccall merged commit 43cdee3 into swiftlang:main Feb 27, 2024
@rjmccall rjmccall deleted the isolated-any-closures branch February 27, 2024 09:23
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.

1 participant