[NFC][sanitizer] Atomix relaxed in TwoLevelMap
authorVitaly Buka <vitalybuka@google.com>
Mon, 25 Oct 2021 00:17:39 +0000 (17:17 -0700)
committerVitaly Buka <vitalybuka@google.com>
Sun, 31 Oct 2021 19:18:03 +0000 (12:18 -0700)
commit948b91a08e1712a6e2226eca5baf14a13a0c9ba5
treedddb37c39020e8aba94dd648e96df914e94b74f6
parente1240745ef958b575e12fd80bd99ce5a7a347e2c
[NFC][sanitizer] Atomix relaxed in TwoLevelMap

This is NOOP in x86_64.
On arch64 it avoids Data Memory Barrier with visible improvements on micro benchmarks.

Reviewed By: dvyukov

Differential Revision: https://reviews.llvm.org/D112391
compiler-rt/lib/sanitizer_common/sanitizer_flat_map.h