tsan: disable trace switching after multithreaded fork
authorDmitry Vyukov <dvyukov@google.com>
Mon, 30 Apr 2018 07:28:45 +0000 (07:28 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Mon, 30 Apr 2018 07:28:45 +0000 (07:28 +0000)
commit6c33998ce1a03bc770943015d8cb5d477ee66bd8
tree0e44de304b965a2580cf09ecc97d30e8a24c44cc
parent5861c263e0c7264d891eb48c9272d906d978a417
tsan: disable trace switching after multithreaded fork

The problem is reported in:
https://github.com/google/sanitizers/issues/945

We already disable as much as possible after multithreaded fork,
trace switching is last place that can hang due to basic
operations (memory accesses, function calls).
Disable it too.

llvm-svn: 331163
compiler-rt/lib/tsan/rtl/tsan_rtl.cc
compiler-rt/lib/tsan/rtl/tsan_rtl.h