diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2016-09-08 10:15:20 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2016-09-08 10:15:20 +0000 |
commit | 419ebb289104f75207dc5a5c56e75d497534eb8a (patch) | |
tree | 933dbd2212efbf207e2aecf0ac04bd0853a55ac1 /llvm/lib/Support/Host.cpp | |
parent | 2f1fbaebe25a4637cf75ec9ab1877c64584ede24 (diff) | |
download | bcm5719-llvm-419ebb289104f75207dc5a5c56e75d497534eb8a.tar.gz bcm5719-llvm-419ebb289104f75207dc5a5c56e75d497534eb8a.zip |
[tsan] Support C++11 call_once in TSan on Darwin
This patch adds a wrapper for call_once, which uses an already-compiled helper __call_once with an atomic release which is invisible to TSan. To avoid false positives, the interceptor performs an explicit atomic release in the callback wrapper.
Differential Revision: https://reviews.llvm.org/D24188
llvm-svn: 280920
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
0 files changed, 0 insertions, 0 deletions