Skip to content

[5.5] Use &_dispatch_main_q as the identity of the main actor #37977

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 1 commit into from
Jun 18, 2021

Conversation

rjmccall
Copy link
Contributor

@rjmccall rjmccall commented Jun 17, 2021

I added Builtin.buildMainActorExecutor before, but because I never implemented it correctly in IRGen, it's not okay to use it on old versions, so I had to introduce a new feature only for it.

The shim dispatch queue class in the Concurrency runtime is rather awful, but I couldn't think of a reasonable alternative without just entirely hard-coding the witness table in the runtime. It's not ABI, at least.

5.5 version of #37965. rdar://77231637

I added Builtin.buildMainActorExecutor before, but because I never
implemented it correctly in IRGen, it's not okay to use it on old
versions, so I had to introduce a new feature only for it.

The shim dispatch queue class in the Concurrency runtime is rather
awful, but I couldn't think of a reasonable alternative without
just entirely hard-coding the witness table in the runtime.
It's not ABI, at least.
@rjmccall rjmccall requested a review from a team as a code owner June 17, 2021 19:02
@rjmccall
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - c35df54

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - c35df54

@DougGregor
Copy link
Member

@swift-ci please test Linux

@rjmccall
Copy link
Contributor Author

@swift-ci Please test macOS

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - c35df54

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - c35df54

@rjmccall rjmccall merged commit 0887614 into swiftlang:release/5.5 Jun 18, 2021
@rjmccall rjmccall deleted the dispatch-main-q-5.5 branch June 18, 2021 17:45
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