[PATCH] D65705: [TSAN] Fix tsan on FreeBSD after D54889

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 15:30:56 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL368103: [TSAN] Fix tsan on FreeBSD after D54889 (authored by arichardson, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D65705?vs=213208&id=213735#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65705/new/

https://reviews.llvm.org/D65705

Files:
  compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cpp
  compiler-rt/trunk/test/tsan/ignored-interceptors-mmap.cpp


Index: compiler-rt/trunk/test/tsan/ignored-interceptors-mmap.cpp
===================================================================
--- compiler-rt/trunk/test/tsan/ignored-interceptors-mmap.cpp
+++ compiler-rt/trunk/test/tsan/ignored-interceptors-mmap.cpp
@@ -1,7 +1,7 @@
 // RUN: %clangxx_tsan -O0 %s -o %t
 // RUN: not %run %t        2>&1 | FileCheck %s --check-prefix=CHECK-RACE
 // RUN:     %run %t ignore 2>&1 | FileCheck %s --check-prefix=CHECK-IGNORE
-// XFAIL: freebsd,netbsd
+// XFAIL: netbsd
 
 #include <sys/mman.h>
 #include <string.h>
Index: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cpp
===================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cpp
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cpp
@@ -149,6 +149,7 @@
   // We don't use ScopedIgnoreInterceptors, because we want ignores to be
   // enabled even when the thread function exits (e.g. during pthread thread
   // shutdown code).
+  cur_thread_init();
   cur_thread()->ignore_interceptors++;
   const u64 kMs2Ns = 1000 * 1000;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65705.213735.patch
Type: text/x-patch
Size: 1058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190806/759022b3/attachment.bin>


More information about the llvm-commits mailing list