Closed RalfJung closed 1 month ago
@bors r+
:pushpin: Commit 9a4cd35bf0befd2cad2259e9d6fcd99b2aa7e4e0 has been approved by RalfJung
It is now in the queue for this repository.
:hourglass: Testing commit 9a4cd35bf0befd2cad2259e9d6fcd99b2aa7e4e0 with merge 23ff2ea062baa1d9293491015bd855c0c1e7d155...
:sunny: Test successful - checks-actions Approved by: RalfJung Pushing 23ff2ea062baa1d9293491015bd855c0c1e7d155 to master...
Fixes https://github.com/rust-lang/miri/issues/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.