Use pthreads for thread-local lsan allocator cache on darwin
authorFrancis Ricci <francisjricci@gmail.com>
Mon, 27 Mar 2017 14:07:50 +0000 (14:07 +0000)
committerFrancis Ricci <francisjricci@gmail.com>
Mon, 27 Mar 2017 14:07:50 +0000 (14:07 +0000)
commitd668a018f736118ebd3abbf0511076a1a5f61ca2
tree568b4ff82638fda9b49e39862b288b4115651a40
parent0add37927c8b391a3785eae78be1885637f02310
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/D31291

llvm-svn: 298848
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