[PATCH] D111243: Disable SANITIZER_CHECK_DEADLOCKS on Darwin platforms.
Dan Liew via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 6 12:05:44 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9ed6b1cd9760: Disable SANITIZER_CHECK_DEADLOCKS on Darwin platforms. (authored by delcypher).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111243/new/
https://reviews.llvm.org/D111243
Files:
compiler-rt/lib/sanitizer_common/sanitizer_mutex.h
Index: compiler-rt/lib/sanitizer_common/sanitizer_mutex.h
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_mutex.h
+++ compiler-rt/lib/sanitizer_common/sanitizer_mutex.h
@@ -95,8 +95,11 @@
// Go linker does not support THREADLOCAL variables,
// so we can't use per-thread state.
+// Disable checked locks on Darwin. Although Darwin platforms support
+// THREADLOCAL variables they are not usable early on during process init when
+// `__sanitizer::Mutex` is used.
#define SANITIZER_CHECK_DEADLOCKS \
- (SANITIZER_DEBUG && !SANITIZER_GO && SANITIZER_SUPPORTS_THREADLOCAL)
+ (SANITIZER_DEBUG && !SANITIZER_GO && SANITIZER_SUPPORTS_THREADLOCAL && !SANITIZER_MAC)
#if SANITIZER_CHECK_DEADLOCKS
struct MutexMeta {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111243.377632.patch
Type: text/x-patch
Size: 786 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211006/74bcce8f/attachment.bin>
More information about the llvm-commits
mailing list