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

ensure that a macOS os_unfair_lock that is moved while being held is not implicitly unlocked #3973

Merged
merged 3 commits into from
Oct 14, 2024

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Oct 14, 2024

Fixes #3859

We mark an os_unfair_lock that is moved while being held as "poisoned", which means it is now considered forever locked. That's not quite what the real implementation does, but allowing arbitrary moves-while-locked would likely expose a ton of implementation details, so hopefully this is good enough.

@RalfJung
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented Oct 14, 2024

📌 Commit 9a4cd35 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Oct 14, 2024

⌛ Testing commit 9a4cd35 with merge 23ff2ea...

@bors
Copy link
Contributor

bors commented Oct 14, 2024

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 23ff2ea to master...

@bors bors merged commit 23ff2ea into rust-lang:master Oct 14, 2024
8 checks passed
@RalfJung RalfJung deleted the os-unfair-lock branch October 14, 2024 21:21
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.

Our macOS os_unfair_lock do not complain when they are moved while being locked
2 participants