Skip to content

[IRGen] swift_getFunctionTypeMetadataGlobalActor has concurrency availability #38143

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

Conversation

DougGregor
Copy link
Member

@DougGregor DougGregor commented Jun 28, 2021

Explanation: Fix two problems in IRGen where we were not correctly weak-importing symbols from the _Concurrency library, which caused crashes when the program was executed on OS's that do not include support for concurrency.
Scope: Affects back-deployed applications that have adopted concurrency behind @available(...).
Radar/SR Issue: rdar://79674106
Risk: Low.
Testing: PR testing and CI on main.
Original PR: #38140

We were not making references to async function pointers "weak" when
the function itself was weak, because we were always calculating
linkage as-if we were defining the async function pointer.

Fixes the rest of rdar://79674106.
@DougGregor DougGregor requested a review from a team as a code owner June 28, 2021 22:21
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please nominate

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 7d30d04

@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit 060a35a into swiftlang:release/5.5 Jun 29, 2021
@DougGregor DougGregor deleted the concurrency-availability-function-type-metadata-5.5 branch June 29, 2021 17:50
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants