Skip to content

Commit 284d4d3

Browse files
committed
deliberate-ub: mention the load-load races in tokio
1 parent 2f7bf40 commit 284d4d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: resources/deliberate-ub.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ We should evaluate whether there truly is some use-case here that is not current
1919
see the [discussion here](https://github.com/rust-lang/unsafe-code-guidelines/issues/449).<br>
2020
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).
2121
(Or of course one can use inline assembly, but it would be better if that was not required.)
22+
* tokio causes race conditions between atomic and non-atomic loads; see [this issue](https://github.com/tokio-rs/tokio/issues/6155) for details.
2223

2324
### Cases related to aliasing
2425

0 commit comments

Comments
 (0)