Closed
Description
I have a little1 lock-free data structure I would like to use in PyO3 and I tested it using Miri (with the default settings) to increase my confidence that it actually works.
One thing I found during testing is that replacing an open-coded compare-exchange loop by the equivalent code using fetch_update
in
adamreichold/lockfree-collector@2044350
is rejected by Miri, c.f.
https://github.com/adamreichold/lockfree-collector/actions/runs/9141771033/job/25136576921
Is it possible the closure used by fetch_update
confuses Miri or does it indeed add additional requirements that the unsafe code violates? Or did I make a mistake and the code is not in fact equivalent?
Footnotes
-
famous last words ↩
Metadata
Metadata
Assignees
Labels
No labels