summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2015-11-05 13:59:07 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2015-11-05 13:59:07 +0000
commit12bba1c2a0c5c3d961fa3841bd2ceae60bdae015 (patch)
tree747ada7145e5b85140bb5744506d09114dfd9130 /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp
parentcd18f28751ad304e0ecd9b8d7c0cb67bff4e0768 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud