Skip to content

Fix a race condition in LocalConnection #1431

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 5, 2024

The comment on LocalConnection assumed that all mutable state was guarded by queue but state and handler actually weren’t. This was found by the thread sanitizer.

The comment on `LocalConnection` assumed that all mutable state was guarded by `queue` but `state` and `handler` actually weren’t. This was found by the thread sanitizer.
@ahoppen ahoppen requested review from bnbarham and hamishknight June 5, 2024 18:00
@ahoppen ahoppen requested a review from benlangmuir as a code owner June 5, 2024 18:00
@ahoppen
Copy link
Member Author

ahoppen commented Jun 5, 2024

@swift-ci Please test

@ahoppen ahoppen merged commit e00312a into swiftlang:main Jun 5, 2024
3 checks passed
@ahoppen ahoppen deleted the local-connection-race-condition branch June 5, 2024 21:26
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