[tsan] Add XPC support (OS X)
authorKuba Brecka <kuba.brecka@gmail.com>
Thu, 7 Apr 2016 11:47:11 +0000 (11:47 +0000)
committerKuba Brecka <kuba.brecka@gmail.com>
Thu, 7 Apr 2016 11:47:11 +0000 (11:47 +0000)
commite316bb61b3725c36b203b875c29c4a9421a972d8
tree4cf0ee5278a2bd925678296c870ef4825033581d
parentcecb7faea23bd055ca4a2bc08b313f5dbaadde31
[tsan] Add XPC support (OS X)

XPC APIs have async callbacks, and we need some more happen-before edges to avoid false positives. This patch add them, plus a test case (sorry for the long boilerplate code, but XPC just needs all that).

Differential Revision: http://reviews.llvm.org/D18493

llvm-svn: 265661
compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc
compiler-rt/test/tsan/Darwin/xpc-race.mm [new file with mode: 0644]
compiler-rt/test/tsan/Darwin/xpc.mm [new file with mode: 0644]