llvm-project/compiler-rt/lib
Dmitry Vyukov acbb4fcd5e tsan: increase max number of threads supported by test-only barrier
Currently the barrier supports only 256 threads,
this does not allow to write reliable tests that use more threads.
Bump max number of threads to 1024 to support writing
good stress tests.
Also replace sched_yield() with usleep(100) on the wait path.
If we write tests that create hundreds of threads (and dozens
of tests can run in parallel), yield would consume massive
amounts of CPU time for spinning.

Depends on D106952.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D106953
2021-07-28 17:35:23 +02:00
..
BlocksRuntime
asan sanitizers: switch BlockingMutex(LINKER_INITIALIZED) to Mutex 2021-07-28 15:09:34 +02:00
builtins [compiler-rt][CMake][arm64] Use a custom target for symlinking LSE sources 2021-07-26 21:42:27 +03:00
cfi sanitizers: switch BlockingMutex(LINKER_INITIALIZED) to Mutex 2021-07-28 15:09:34 +02:00
crt [RISCV][crt] support building without init_array 2020-12-01 17:17:50 +03:00
dfsan Revert "sanitizers: increase .clang-format columns to 100" 2021-07-28 09:40:21 +02: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 Revert "sanitizers: increase .clang-format columns to 100" 2021-07-28 09:40:21 +02:00
interception Revert "sanitizers: increase .clang-format columns to 100" 2021-07-28 09:40:21 +02:00
lsan sanitizers: switch BlockingMutex(LINKER_INITIALIZED) to Mutex 2021-07-28 15:09:34 +02:00
memprof sanitizers: switch BlockingMutex(LINKER_INITIALIZED) to Mutex 2021-07-28 15:09:34 +02:00
msan Revert "sanitizers: increase .clang-format columns to 100" 2021-07-28 09:40:21 +02:00
orc [ORC][ORC-RT] Add initial Objective-C and Swift support to MachOPlatform. 2021-07-26 18:02:01 +10:00
profile [profile] Add binary id into profiles 2021-07-23 00:19:12 +00:00
safestack Revert "sanitizers: increase .clang-format columns to 100" 2021-07-28 09:40:21 +02:00
sanitizer_common sanitizer_common: replace RWMutex/BlockingMutex with Mutex 2021-07-28 15:10:24 +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: increase max number of threads supported by test-only barrier 2021-07-28 17:35:23 +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