diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-22 18:43:15 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-22 18:43:15 +0000 |
commit | 289fa303d6df65b9db955e478263677f8bc7e62a (patch) | |
tree | a13c0c7f6575c19340f22eadcb8e9165ea6dc841 /contrib/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc | |
parent | d0338a294d7c83730952e980a3866f54a6d4ad3c (diff) | |
parent | f351c8a560ddc5b5df9ee5ba4ccc1cfb9029146d (diff) |
Merge compiler-rt trunk r300890, and update build glue.
Notes
Notes:
svn path=/projects/clang500-import/; revision=317285
Diffstat (limited to 'contrib/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc')
-rw-r--r-- | contrib/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc b/contrib/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc index fc5eb0499076..f6bf8a0e586b 100644 --- a/contrib/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc +++ b/contrib/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc @@ -281,6 +281,12 @@ TSAN_INTERCEPTOR(void, xpc_connection_send_message_with_reply, (connection, message, replyq, new_handler); } +TSAN_INTERCEPTOR(void, xpc_connection_cancel, xpc_connection_t connection) { + SCOPED_TSAN_INTERCEPTOR(xpc_connection_cancel, connection); + Release(thr, pc, (uptr)connection); + REAL(xpc_connection_cancel)(connection); +} + // On macOS, libc++ is always linked dynamically, so intercepting works the // usual way. #define STDCXX_INTERCEPTOR TSAN_INTERCEPTOR |