llvm-project/compiler-rt/lib
Dmitry Vyukov 927efd0b5d sanitizer_common: modernize SpinMutex
Some minor improvements:
1. Make StaticSpinMutex non-copyable.
2. Add LIKELY to Lock.
3. Move LockSlow into the .cpp file (now that we have it).
4. The only non-trivial change: use proc_yield(1) instread of proc_yield(10)
   with the proportional increase in the number of spin iterations.
   Latency of the PAUSE instruction has raised from ~1 cycle to ~100 cycles
   in the recent Intel CPUs. So proc_yield(10) is too aggressive backoff.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D106350
2021-07-21 08:14:12 +02:00
..
BlocksRuntime
asan sanitizer_common: add simpler ThreadRegistry ctor 2021-07-13 22:52:25 -07:00
builtins Avoid unnecessary AArch64 DSB in __clear_cache in some situations. 2021-06-17 07:45:06 +01:00
cfi sanitizer_common: add thread safety annotations 2021-07-12 11:46:49 +02:00
crt [RISCV][crt] support building without init_array 2020-12-01 17:17:50 +03:00
dfsan Prepare Compiler-RT for GnuInstallDirs, matching libcxx, document all 2021-07-13 15:21:41 +00:00
fuzzer Revert "Refactor mutation strategies into a standalone library" 2021-07-02 09:45:11 -07:00
gwp_asan [rt][nfc] Rewrite #ifndef as #if defined(). 2021-07-19 14:17:13 +02:00
hwasan [compiler-rt][hwasan] Refactor kAliasRegionStart usage 2021-07-12 16:33:05 -07:00
interception [asan] Remove Asan, Ubsan support of RTEMS and Myriad 2021-06-15 12:59:05 -07:00
lsan sanitizer_common: add simpler ThreadRegistry ctor 2021-07-13 22:52:25 -07:00
memprof sanitizer_common: add simpler ThreadRegistry ctor 2021-07-13 22:52:25 -07:00
msan [NFC][msan] Fix assigned-unused warning 2021-06-02 00:09:02 -07:00
orc [ORC][ORC-RT] Revert MachO TLV patches while I investigate more bot failures. 2021-07-21 15:52:33 +10:00
profile [NFC][profile] Move writeMMappedFile to ELF ifdef block 2021-07-19 23:13:13 -07:00
safestack [sanitizer] Set IndentPPDirectives: AfterHash in .clang-format 2021-05-03 13:49:41 -07:00
sanitizer_common sanitizer_common: modernize SpinMutex 2021-07-21 08:14:12 +02:00
scudo [scudo] Don't enabled MTE for small alignment 2021-07-14 12:04:16 -07:00
stats compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
tsan tsan: remove the stats subsystem 2021-07-20 07:47:38 +02:00
ubsan [asan] Remove Asan, Ubsan support of RTEMS and Myriad 2021-06-15 12:59:05 -07:00
ubsan_minimal [compiler-rt] Suppress -Wunused-result due to ::write when _FORTIFY_SOURCE>0 in glibc 2020-10-12 09:57:12 -07:00
xray [compiler-rt][iwyu] explicitly includes `<new>` in xray_utils.cpp 2021-07-05 21:46:42 +00:00
CMakeLists.txt [ORC-RT] Re-apply "Initial ORC Runtime directories and build..." with fixes. 2021-04-24 16:00:20 -07:00