Skip to content

Commit

Permalink
tsan: clean up code after r261658
Browse files Browse the repository at this point in the history
llvm-svn: 261660
  • Loading branch information
dvyukov committed Feb 23, 2016
1 parent 713f25e commit 0c20289
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2051,8 +2051,6 @@ void ALWAYS_INLINE rtl_generic_sighandler(bool sigact, int sig,
(sctx && atomic_load(&sctx->in_blocking_func, memory_order_relaxed))) {
atomic_fetch_add(&thr->in_signal_handler, 1, memory_order_relaxed);
if (sctx && atomic_load(&sctx->in_blocking_func, memory_order_relaxed)) {
// We ignore interceptors in blocking functions,
// temporary enbled them again while we are calling user function.
atomic_store(&sctx->in_blocking_func, 0, memory_order_relaxed);
CallUserSignalHandler(thr, sync, true, sigact, sig, info, ctx);
atomic_store(&sctx->in_blocking_func, 1, memory_order_relaxed);
Expand Down
3 changes: 2 additions & 1 deletion compiler-rt/test/tsan/ignore_lib4.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// RUN: %clangxx_tsan -O1 %s -DLIB -fPIC -shared -o %T/libignore_lib4.so
// RUN: %clangxx_tsan -O1 %s -o %t
// RUN: %env_tsan_opts=suppressions='%s.supp' %run %t 2>&1 | FileCheck %s
// RUN: echo "called_from_lib:libignore_lib4.so" > %t.supp
// RUN: %env_tsan_opts=suppressions='%t.supp' %run %t 2>&1 | FileCheck %s

// Longjmp assembly has not been implemented for mips64 yet
// XFAIL: mips64
Expand Down
1 change: 0 additions & 1 deletion compiler-rt/test/tsan/ignore_lib4.cc.supp

This file was deleted.

0 comments on commit 0c20289

Please sign in to comment.