tsan: fix ignore handling in signal handlers
authorDmitry Vyukov <dvyukov@google.com>
Mon, 4 Apr 2016 10:52:59 +0000 (10:52 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Mon, 4 Apr 2016 10:52:59 +0000 (10:52 +0000)
commit0d9b7bc9ad0b620dde5020cb046dcdd5c437a4b8
treed11af20b226e93ddc1dfa1164250033f4477ff37
parent20dfd778264a680cf46e24b7457b8b797e7987cb
tsan: fix ignore handling in signal handlers

We've reset thr->ignore_reads_and_writes, but forget to do
thr->fast_state.ClearIgnoreBit(). So ignores were not effective
reset and fast_state.ignore_bit was corrupted if signal handler
itself uses ignores.

Properly reset/restore fast_state.ignore_bit around signal handlers.

llvm-svn: 265288
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc