diff options
| author | Kuba Brecka <kuba.brecka@gmail.com> | 2015-11-24 13:36:06 +0000 |
|---|---|---|
| committer | Kuba Brecka <kuba.brecka@gmail.com> | 2015-11-24 13:36:06 +0000 |
| commit | 440d08600b5c4dbe49515d0f106d052bb2cb053a (patch) | |
| tree | 6c263ba7b533a6959a0837cf3ef6ffdf89eb3011 /lldb/packages/Python/lldbsuite/test/python_api/target | |
| parent | 6cb7f7a92391327899d833c24d937fc8a1c117af (diff) | |
| download | bcm5719-llvm-440d08600b5c4dbe49515d0f106d052bb2cb053a.tar.gz bcm5719-llvm-440d08600b5c4dbe49515d0f106d052bb2cb053a.zip | |
[tsan] Implement basic GCD interceptors for OS X
We need to intercept libdispatch APIs (dispatch_sync, dispatch_async, etc.) to add synchronization between the code that submits the task and the code that gets executed (possibly on a different thread). This patch adds release+acquire semantics for dispatch_sync, and dispatch_async (plus their "_f" and barrier variants). The synchronization is done on malloc'd contexts (separate for each submitted block/callback). Added tests to show usage of dispatch_sync and dispatch_async, for cases where we expect no warnings and for cases where TSan finds races.
Differential Revision: http://reviews.llvm.org/D14745
llvm-svn: 253982
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/target')
0 files changed, 0 insertions, 0 deletions

