diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2015-11-05 13:59:07 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2015-11-05 13:59:07 +0000 |
commit | 12bba1c2a0c5c3d961fa3841bd2ceae60bdae015 (patch) | |
tree | 747ada7145e5b85140bb5744506d09114dfd9130 /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp | |
parent | cd18f28751ad304e0ecd9b8d7c0cb67bff4e0768 (diff) | |
download | bcm5719-llvm-12bba1c2a0c5c3d961fa3841bd2ceae60bdae015.tar.gz bcm5719-llvm-12bba1c2a0c5c3d961fa3841bd2ceae60bdae015.zip |
[tsan] Fix pthread_once interceptor for OS X
TSan has a re-implementation of `pthread_once` in its interceptor, which assumes that the `pthread_once_t *once_control` pointer is actually pointing to a "storage" which is zero-initialized and used for the atomic operations. However, that's not true on OS X, where pthread_once_t is a structure, that contains a header (with a magic value) and the actual storage follows after that. This patch skips the header to make the interceptor work on OS X.
Differential Revision: http://reviews.llvm.org/D14379
llvm-svn: 252160
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp')
0 files changed, 0 insertions, 0 deletions