summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_flags.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2014-03-17 07:51:53 +0000
committerDmitry Vyukov <dvyukov@google.com>2014-03-17 07:51:53 +0000
commit325895f4f452816f266fdee4d2ef17164ced6774 (patch)
tree923ab628497e60559e30a7fd7ccd7ef49769c679 /lib/sanitizer_common/sanitizer_flags.h
parentbeb3026bb0858e80f016e10b9e16680141728575 (diff)
tsan: yet another attempt to fix pthread_cond interceptors
Make behavior introduced in r202820 conditional (under legacy_pthread_cond flag). The new issue that we've hit with the satellite pthread_cond_t struct is that pthread_condattr_getpshared does not work (satellite data is not shared between processes). The idea is that most processes do not use pthread 2.2.5. The rare ones that use (2.2.5 is dated by 2002) must specify legacy_pthread_cond=1 on their own risk. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_flags.h')
-rw-r--r--lib/sanitizer_common/sanitizer_flags.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_flags.h b/lib/sanitizer_common/sanitizer_flags.h
index 4d2d684b8..94d695461 100644
--- a/lib/sanitizer_common/sanitizer_flags.h
+++ b/lib/sanitizer_common/sanitizer_flags.h
@@ -78,6 +78,8 @@ struct CommonFlags {
uptr clear_shadow_mmap_threshold;
// Colorize reports: (always|never|auto).
const char *color;
+ // Enables support for dynamic libraries linked with libpthread 2.2.5.
+ bool legacy_pthread_cond;
};
inline CommonFlags *common_flags() {