Skip to content

[Concurrency] Handle partial application of actor-isolated methods. #34051

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 3 commits into from
Sep 24, 2020

Conversation

DougGregor
Copy link
Member

Implement appropriate isolation checking for partial application of actor-isolated methods.

@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@slavapestov
Copy link
Contributor

Might be worth adding some SILGen tests for the valid cases.

@DougGregor
Copy link
Member Author

Might be worth adding some SILGen tests for the valid cases.

We don't have any SILGen support for asynchronous functions yet, so we can't write these tests meaningfully.

@DougGregor
Copy link
Member Author

Windows issue is unrelated:

mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "dispatch_timer_short.exe". Access is denied.

Replace a hand-rolled variant of the subject function used for actor
isolation checking with a call to it. This exposed some limitations of
the function, which would assert() when dealing with partial
applications that involved optionals. Fix those as well.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

@swift-ci please test source compatibility

@DougGregor
Copy link
Member Author

@swift-ci please smoke test Linux

@DougGregor
Copy link
Member Author

Source compatibility suite testing is still being adjusted for the master -> main transition.

@DougGregor DougGregor merged commit 14906ba into swiftlang:main Sep 24, 2020
@DougGregor DougGregor deleted the concurrency-partial-application branch September 24, 2020 18:44
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