summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-04-15 10:49:07 +0000
committerPavel Labath <labath@google.com>2016-04-15 10:49:07 +0000
commit7ef36b5c15bed963491b04263d48b6a6e65c4666 (patch)
tree586aaa16d5c13aa4852591b4e492ff9198da6e1b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent9521ad2a49af44ef74d4ad56e62ed6ac48c8a192 (diff)
Work around a linux libc bug causing a crash in TaskPool
Summary: Doing a pthread_detach while the thread is exiting can cause crashes or other mischief, so we make sure the thread stays around long enough. The performance impact of the added synchronization should be minimal, as the parent thread is already holding a mutex, so I am just making sure it holds it for a little while longer. It's possible the new thread will block on this mutex immediately after startup, but it should be unblocked really quickly and some blocking is unavoidable if we actually want to have this synchronization. Reviewers: tberghammer Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D19153 llvm-svn: 266423
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions