[PATCH] D16075: [tsan] Fix the value of PTHREAD_MUTEX_RECURSIVE for OS X and FreeBSD
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 14 04:16:43 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL257758: [tsan] Fix the value of PTHREAD_MUTEX_RECURSIVE for OS X and FreeBSD (authored by kuba.brecka).
Changed prior to commit:
http://reviews.llvm.org/D16075?vs=44530&id=44851#toc
Repository:
rL LLVM
http://reviews.llvm.org/D16075
Files:
compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
Index: compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
===================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
@@ -121,8 +121,13 @@
extern "C" int mallopt(int param, int value);
#endif
extern __sanitizer_FILE *stdout, *stderr;
+#if !SANITIZER_FREEBSD && !SANITIZER_MAC
const int PTHREAD_MUTEX_RECURSIVE = 1;
const int PTHREAD_MUTEX_RECURSIVE_NP = 1;
+#else
+const int PTHREAD_MUTEX_RECURSIVE = 2;
+const int PTHREAD_MUTEX_RECURSIVE_NP = 2;
+#endif
const int EINVAL = 22;
const int EBUSY = 16;
const int EOWNERDEAD = 130;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16075.44851.patch
Type: text/x-patch
Size: 657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160114/d1e1c88b/attachment.bin>
More information about the llvm-commits
mailing list