about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect/src/lib.rs
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2020-01-28 20:53:17 +0000
committerAlex Crichton <alex@alexcrichton.com>2020-01-28 21:53:17 +0100
commit0bd16446db5fdc57eeaf40d66c8791589dc8b647 (patch)
tree4e62f5c626cfcbe7b213d727eda0e5844c00b629 /library/stdarch/crates/std_detect/src/lib.rs
parent1601ce4f2f595f91c0245ba5e8abea9c157c08db (diff)
downloadrust-0bd16446db5fdc57eeaf40d66c8791589dc8b647.tar.gz
rust-0bd16446db5fdc57eeaf40d66c8791589dc8b647.zip
Fix race condition in feature cache on 32 platforms (#837)
* Fix race condition in feature cache on 32 platforms

If we observe that the second word is initialized, we can't really
assume that the first is initialized as well. So check each word
separately.

* Use stronger atomic ordering

Better SeqCst than sorry!

* Use two caches on x64 for simplicity
Diffstat (limited to 'library/stdarch/crates/std_detect/src/lib.rs')
0 files changed, 0 insertions, 0 deletions