seqlock icon indicating copy to clipboard operation
seqlock copied to clipboard

Use atomic_element_unordered_copy_memory_nonoverlapping to read the data

Open htfy96 opened this issue 6 years ago • 1 comments

https://github.com/rust-lang/rust/issues/58599 https://internals.rust-lang.org/t/expose-llvm-atomic-memcpy-in-intrinsics/9466/4

The volatile_read here is an questionable operation which depends on internal implementations to synchronize reads with the previous read-acquire on seqlock.

Ref: #2

htfy96 avatar Jun 02 '19 23:06 htfy96

AFAIK these intrinsics don't work correctly at the moment or generate poor code quality. But it's true that eventually we will want to use them.

Amanieu avatar Jun 03 '19 09:06 Amanieu