Skip to content
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

Fix unsoundness in RwLock Sync impl #45

Merged
merged 1 commit into from
Nov 18, 2021
Merged

Fix unsoundness in RwLock Sync impl #45

merged 1 commit into from
Nov 18, 2021

Conversation

jplatte
Copy link
Contributor

@jplatte jplatte commented Nov 11, 2021

Previously, the RwLock could be used to obtain references to the same non-Sync type in different threads, which is undefined behavior.

Fixes #37.

@asomers
Copy link
Owner

asomers commented Nov 14, 2021

Thanks for the PR , @jplatte . Would you mind rebasing to fix CI?

Previously, the RwLock could be used to obtain references to the same
non-Sync type in different threads, which is undefined behavior.
@asomers asomers merged commit 3c5e3d2 into asomers:master Nov 18, 2021
asomers added a commit that referenced this pull request Nov 19, 2021
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.

RwLock is unsound
2 participants