Skip to content

[6.0][Concurrency] Fix how we obtain DA-as-A conformance for cross module #73840

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

ktoso
Copy link
Contributor

@ktoso ktoso commented May 23, 2024

Description: The newly introduced in #71043 builtin for creating an ad-hoc conformance did not handle cross-module situations. This PR resolves the issue and cleans up how we create this conformance, such that we only create it once.
Scope/Impact: Affects any distributed actor use there a "distributed actor as actor" isolation conversion happens -- these happen implicitly when #isolation is used and could crash compilation without this fix.
Risk: Low, very specific piece of code affected and well tested.
Testing: CI testing and manually verified in reproducer project and distributed cluster
Reviewed by: @DougGregor @slavapestov

Original PR: #73781
Radar: rdar://127206143

@ktoso ktoso requested a review from a team as a code owner May 23, 2024 12:37
@ktoso ktoso requested a review from DougGregor May 23, 2024 12:37
@ktoso ktoso changed the title [Concurrency] Fix missing return in legacy isSameExecutor mode detection [6.0][Concurrency] Fix missing return in legacy isSameExecutor mode detection May 23, 2024
@ktoso ktoso added distributed Feature → concurrency: distributed actor 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels May 23, 2024
@ktoso
Copy link
Contributor Author

ktoso commented May 23, 2024

@swift-ci please test

@ktoso ktoso closed this May 24, 2024
@ktoso ktoso changed the title [6.0][Concurrency] Fix missing return in legacy isSameExecutor mode detection [6.0][Concurrency] Fix how we obtain DA-as-A conformance for cross module May 24, 2024
@ktoso ktoso reopened this May 24, 2024
@ktoso ktoso force-pushed the pick-da-as-a-conformance-fix-cross-module branch from 9fc5375 to dd01d1b Compare May 28, 2024 04:48
@ktoso
Copy link
Contributor Author

ktoso commented May 28, 2024

@swift-ci please test

@hborla hborla merged commit 43cebb8 into swiftlang:release/6.0 May 28, 2024
5 checks passed
@ktoso ktoso deleted the pick-da-as-a-conformance-fix-cross-module branch May 28, 2024 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distributed Feature → concurrency: distributed actor 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants