Skip to content

Commit

Permalink
deliberate-ub: mention the load-load races in tokio
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Dec 8, 2023
1 parent 2f7bf40 commit 284d4d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/deliberate-ub.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ We should evaluate whether there truly is some use-case here that is not current
see the [discussion here](https://github.com/rust-lang/unsafe-code-guidelines/issues/449).<br>
The alternative is to not use the "fast path" for problematic types (and fall back to the SeqLock), but that requires some way to query at `const`-time whether the type contains padding (or provenance).
(Or of course one can use inline assembly, but it would be better if that was not required.)
* tokio causes race conditions between atomic and non-atomic loads; see [this issue](https://github.com/tokio-rs/tokio/issues/6155) for details.

### Cases related to aliasing

Expand Down

0 comments on commit 284d4d3

Please sign in to comment.