diff options
author | Kuba Mracek <mracek@apple.com> | 2017-07-05 22:17:44 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2017-07-05 22:17:44 +0000 |
commit | 7149ca04ad8cce1171ec99e78db40d4b84d655bd (patch) | |
tree | ca48ce03ace993b6f0ac69df50acc1ed0ee5ba90 /llvm/lib/Bitcode/Reader/BitReader.cpp | |
parent | 7016a1470246c3570edc65751ff471b7a5fea718 (diff) | |
download | bcm5719-llvm-7149ca04ad8cce1171ec99e78db40d4b84d655bd.tar.gz bcm5719-llvm-7149ca04ad8cce1171ec99e78db40d4b84d655bd.zip |
[tsan] Use pthread_sigmask instead of sigprocmask to block signals in a thread on Darwin
On Darwin, sigprocmask changes the signal mask for the entire process. This has some unwanted consequences, because e.g. internal_start_thread wants to disable signals only in the current thread (to make the new thread inherit the signal mask), which is currently broken on Darwin. This patch switches to pthread_sigmask.
Differential Revision: https://reviews.llvm.org/D35016
llvm-svn: 307212
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitReader.cpp')
0 files changed, 0 insertions, 0 deletions