Use pthreads for thread-local lsan allocator cache on darwin
authorFrancis Ricci <francisjricci@gmail.com>
Mon, 20 Mar 2017 17:06:42 +0000 (17:06 +0000)
committerFrancis Ricci <francisjricci@gmail.com>
Mon, 20 Mar 2017 17:06:42 +0000 (17:06 +0000)
commitb91a5eabb3cce4211a35c8891735517d5aedb717
treedbdae40684c1ac71d96224c2f0bd163bd34643ed
parent89268b183ffe58c1ca5b40857afaf5727334f4ee
Use pthreads for thread-local lsan allocator cache on darwin

Summary:
This patch allows us to move away from using __thread on darwin,
which is requiring for building lsan for darwin on ios version 7
and on iossim i386.

Reviewers: kubamracek, kcc

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D29994

llvm-svn: 298274
compiler-rt/lib/lsan/lsan_allocator.cc
compiler-rt/lib/lsan/lsan_allocator.h
compiler-rt/lib/lsan/lsan_common_linux.cc
compiler-rt/lib/lsan/lsan_common_mac.cc