summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2017-11-26 09:42:01 +0000
committerKamil Rytarowski <n54@gmx.com>2017-11-26 09:42:01 +0000
commit20e97ae9a06b8869e7fe3aa7bfff4b5549c8bcf3 (patch)
tree173d9d3eddf365b528d988a47de3e3539020b658 /clang/test
parentd8b17bedfacc1678913e5d81c02c6a55282f945d (diff)
downloadbcm5719-llvm-20e97ae9a06b8869e7fe3aa7bfff4b5549c8bcf3.tar.gz
bcm5719-llvm-20e97ae9a06b8869e7fe3aa7bfff4b5549c8bcf3.zip
Detect thread termination in LSan/NetBSD
Summary: Stop using the Linux solution with pthread_key_create(3). This approach does not work on NetBSD, because calling the thread destructor is not the latest operation on a POSIX thread entity. Detect _lwp_exit(2) call as it is really the latest operation called from a detaching POSIX thread. The pthread_key_create(3) solution also cannot be used in early libc/libpthread initialization on NetBSD as the system libraries are not bootstrapped enough. Sponsored by <The NetBSD Foundation> Reviewers: joerg, vitalybuka, kcc, dvyukov Reviewed By: dvyukov Subscribers: llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D40457 llvm-svn: 318994
Diffstat (limited to 'clang/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud