diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-10-17 09:24:03 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-10-17 09:24:03 +0000 |
commit | fc81346321671489e2864f0614bf44b6af5d9bdb (patch) | |
tree | 403f81b5b3b8dd1216c0764d596d224f1e08dd0c /lib/tsan/rtl/tsan_interceptors.cc | |
parent | 232b043b6c0dfe3c0f1906efba1ecc73868fd410 (diff) | |
download | compiler-rt-fc81346321671489e2864f0614bf44b6af5d9bdb.tar.gz compiler-rt-fc81346321671489e2864f0614bf44b6af5d9bdb.tar.bz2 compiler-rt-fc81346321671489e2864f0614bf44b6af5d9bdb.tar.xz |
[Sanitizer] Move pthread_cond_signal and pthread_cond_broadcast to common interceptors
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_interceptors.cc')
-rw-r--r-- | lib/tsan/rtl/tsan_interceptors.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/tsan/rtl/tsan_interceptors.cc b/lib/tsan/rtl/tsan_interceptors.cc index d72fb94d..97742ddf 100644 --- a/lib/tsan/rtl/tsan_interceptors.cc +++ b/lib/tsan/rtl/tsan_interceptors.cc @@ -1093,20 +1093,6 @@ TSAN_INTERCEPTOR(int, pthread_cond_destroy, void *c) { return res; } -TSAN_INTERCEPTOR(int, pthread_cond_signal, void *c) { - SCOPED_TSAN_INTERCEPTOR(pthread_cond_signal, c); - MemoryRead(thr, pc, (uptr)c, kSizeLog1); - int res = REAL(pthread_cond_signal)(c); - return res; -} - -TSAN_INTERCEPTOR(int, pthread_cond_broadcast, void *c) { - SCOPED_TSAN_INTERCEPTOR(pthread_cond_broadcast, c); - MemoryRead(thr, pc, (uptr)c, kSizeLog1); - int res = REAL(pthread_cond_broadcast)(c); - return res; -} - TSAN_INTERCEPTOR(int, pthread_cond_timedwait, void *c, void *m, void *abstime) { SCOPED_TSAN_INTERCEPTOR(pthread_cond_timedwait, c, m, abstime); @@ -2091,8 +2077,6 @@ void InitializeInterceptors() { TSAN_INTERCEPT(pthread_rwlock_unlock); INTERCEPT_FUNCTION_VER(pthread_cond_destroy, GLIBC_2.3.2); - INTERCEPT_FUNCTION_VER(pthread_cond_signal, GLIBC_2.3.2); - INTERCEPT_FUNCTION_VER(pthread_cond_broadcast, GLIBC_2.3.2); INTERCEPT_FUNCTION_VER(pthread_cond_timedwait, GLIBC_2.3.2); TSAN_INTERCEPT(pthread_barrier_init); |