[compiler-rt] c1d25e9 - [TSan][libdispatch] Add interceptors for dispatch_barrier_async_and_wait(), pt. 2
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 14:37:49 PDT 2020
Author: Julian Lettner
Date: 2020-08-24T14:37:34-07:00
New Revision: c1d25e9a82554aa580b3cc0b97fc5c7db8164042
URL: https://github.com/llvm/llvm-project/commit/c1d25e9a82554aa580b3cc0b97fc5c7db8164042
DIFF: https://github.com/llvm/llvm-project/commit/c1d25e9a82554aa580b3cc0b97fc5c7db8164042.diff
LOG: [TSan][libdispatch] Add interceptors for dispatch_barrier_async_and_wait(), pt. 2
Also intercept these target functions on Linux.
Added:
Modified:
compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp
index 2556de874823..b56cc2dab704 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp
@@ -776,6 +776,8 @@ void InitializeLibdispatchInterceptors() {
INTERCEPT_FUNCTION(dispatch_barrier_sync_f);
INTERCEPT_FUNCTION(dispatch_async_and_wait);
INTERCEPT_FUNCTION(dispatch_async_and_wait_f);
+ INTERCEPT_FUNCTION(dispatch_barrier_async_and_wait);
+ INTERCEPT_FUNCTION(dispatch_barrier_async_and_wait_f);
INTERCEPT_FUNCTION(dispatch_after);
INTERCEPT_FUNCTION(dispatch_after_f);
INTERCEPT_FUNCTION(dispatch_once);
More information about the llvm-commits
mailing list