tsan: ignore interceptors from symbolizer

ocassionally we see races coming from symbolizer interceptors (e.g. memcmp)
reproducible only only on large complex programs

llvm-svn: 206034
This commit is contained in:
Dmitry Vyukov 2014-04-11 15:36:54 +00:00
parent 4b43e91abc
commit fa1d56c31f
1 changed files with 2 additions and 0 deletions

View File

@ -26,12 +26,14 @@ void EnterSymbolizer() {
ThreadState *thr = cur_thread();
CHECK(!thr->in_symbolizer);
thr->in_symbolizer = true;
thr->ignore_interceptors++;
}
void ExitSymbolizer() {
ThreadState *thr = cur_thread();
CHECK(thr->in_symbolizer);
thr->in_symbolizer = false;
thr->ignore_interceptors--;
}
ReportStack *NewReportStackEntry(uptr addr) {