[compiler-rt] fa0a855 - [TSan][libdispatch] Add interceptors for dispatch_barrier_async_and_wait()
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 14:01:16 PDT 2020
Author: Julian Lettner
Date: 2020-08-24T14:01:04-07:00
New Revision: fa0a855c73a053c13d6fcf1aa20bad6f1711d2b8
URL: https://github.com/llvm/llvm-project/commit/fa0a855c73a053c13d6fcf1aa20bad6f1711d2b8
DIFF: https://github.com/llvm/llvm-project/commit/fa0a855c73a053c13d6fcf1aa20bad6f1711d2b8.diff
LOG: [TSan][libdispatch] Add interceptors for dispatch_barrier_async_and_wait()
Add interceptors for the barrier variants of the "async and wait"
dispatch API family.
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 99ec27501100..2556de874823 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp
@@ -235,9 +235,15 @@ SANITIZER_WEAK_IMPORT void dispatch_async_and_wait(
dispatch_queue_t queue, DISPATCH_NOESCAPE dispatch_block_t block);
SANITIZER_WEAK_IMPORT void dispatch_async_and_wait_f(
dispatch_queue_t queue, void *context, dispatch_function_t work);
+SANITIZER_WEAK_IMPORT void dispatch_barrier_async_and_wait(
+ dispatch_queue_t queue, DISPATCH_NOESCAPE dispatch_block_t block);
+SANITIZER_WEAK_IMPORT void dispatch_barrier_async_and_wait_f(
+ dispatch_queue_t queue, void *context, dispatch_function_t work);
DISPATCH_INTERCEPT_SYNC_B(dispatch_async_and_wait, false)
DISPATCH_INTERCEPT_SYNC_F(dispatch_async_and_wait_f, false)
+DISPATCH_INTERCEPT_SYNC_B(dispatch_barrier_async_and_wait, true)
+DISPATCH_INTERCEPT_SYNC_F(dispatch_barrier_async_and_wait_f, true)
#endif
More information about the llvm-commits
mailing list