Skip to content

[6.0][IRGen] Assign layout strings for static layout generic types in meta… #74062

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 1, 2024

Conversation

drexin
Copy link
Contributor

@drexin drexin commented May 31, 2024

…data initialization function

Explanation: The layout string needs to be assigned before completion, to make it available in recursive metadata initialization. Setting it in the completion function causes a race between other metadata initializers using it and the completion function running.
Scope: Compact Value Witnesses only
Issue: rdar://127535274
Original PR: #74058
Risk: Low. Only affects Compact Value Witnesses.
Testing: Added a validation test
Reviewer: @mikeash @aschwaighofer

…data initialization function

rdar://127535274

The layout string needs to be assigned before completion, to make it available in recursive metadata initialization. Setting it in the completion function causes a race between other metadata initializers using it and the completion function running.
@drexin drexin requested a review from a team as a code owner May 31, 2024 20:57
@drexin
Copy link
Contributor Author

drexin commented May 31, 2024

@swift-ci test

@drexin drexin changed the title [IRGen] Assign layout strings for static layout generic types in meta… [6.0][IRGen] Assign layout strings for static layout generic types in meta… May 31, 2024
@drexin drexin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels May 31, 2024
@drexin drexin merged commit 39951b0 into swiftlang:release/6.0 Jun 1, 2024
5 checks passed
@drexin drexin deleted the wip-127535274-6.0 branch June 1, 2024 16:52
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 6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants