-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
The volatile read at https://github.com/Amanieu/seqlock/blob/master/src/lib.rs#L147 is unsound - according to the LLVM memory model, volatile reads on data which is being concurrently modified are UB:
Note that NotAtomic volatile loads and stores are not properly atomic; do not try to use them as a substitute.
- https://llvm.org/docs/Atomics.html
This should be a relaxed atomic load instead.
htfy96
Metadata
Metadata
Assignees
Labels
No labels