mirror of https://github.com/rust-lang/nomicon
The atomic decrement to `rc` should be performed with an ordering of `Ordering::Release` rather than `ordering::Relaxed` to interact correctly with the fence. The code in the full `Drop` implementation at the bottom of the section is correct/pull/316/head
parent
2747c4bb2c
commit
907001bdd0
Loading…
Reference in new issue