aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-07-28 14:56:37 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-07-28 17:35:23 +0200
commitacbb4fcd5e664ddfb515785f1839afc8f2570035 (patch)
treed1ed7fbab3f46b9475468790b3a6b4cbcf856088 /llvm/lib/IR/Module.cpp
parent9ef9d01a5046f4f58b51b59d658e4c05f41344a1 (diff)
downloadllvm-acbb4fcd5e664ddfb515785f1839afc8f2570035.zip
llvm-acbb4fcd5e664ddfb515785f1839afc8f2570035.tar.gz
llvm-acbb4fcd5e664ddfb515785f1839afc8f2570035.tar.bz2
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
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions