Skip to content

[Runtime] Fix memory ordering and TSan compatibility in MetadataAllocator. #80021

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

mikeash
Copy link
Contributor

@mikeash mikeash commented Mar 14, 2025

We need a store-release when putting a new page onto the metadata allocator so that other threads see the initialization. We also need to tell TSan about our memory barriers here, to avoid false positives in __swift_instantiateConcreteTypeFromMangledName when it reads from memory allocated here.

rdar://145778813

…ator.

We need a store-release when putting a new page onto the metadata allocator so that other threads see the initialization. We also need to tell TSan about our memory barriers here, to avoid false positives in __swift_instantiateConcreteTypeFromMangledName when it reads from memory allocated here.

rdar://145778813
@mikeash mikeash requested a review from al45tair as a code owner March 14, 2025 16:46
@mikeash
Copy link
Contributor Author

mikeash commented Mar 14, 2025

@swift-ci please test

@mikeash mikeash requested a review from thetruestblue March 14, 2025 16:49
@mikeash mikeash merged commit 13ef626 into swiftlang:main Mar 17, 2025
5 checks passed
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.

2 participants