tsan: remove bogus CHECK
authorDmitry Vyukov <dvyukov@google.com>
Thu, 21 Mar 2013 12:44:44 +0000 (12:44 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 21 Mar 2013 12:44:44 +0000 (12:44 +0000)
Asynchronous signal (e.g. SIGABRT) can be received with any value of in_rtl.

llvm-svn: 177636

compiler-rt/lib/tsan/rtl/tsan_interceptors.cc

index c122e4f..5dc4497 100644 (file)
@@ -1580,7 +1580,6 @@ static void ALWAYS_INLINE rtl_generic_sighandler(bool sigact, int sig,
       // (but check if we are in a recursive interceptor,
       // i.e. pthread_join()->munmap()).
       (sctx && sctx->in_blocking_func == 1 && thr->in_rtl == 1)) {
-    CHECK(thr->in_rtl == 0 || thr->in_rtl == 1);
     int in_rtl = thr->in_rtl;
     thr->in_rtl = 0;
     CHECK_EQ(thr->in_signal_handler, false);