Factor lsan allocator cache accesses into a function
authorFrancis Ricci <francisjricci@gmail.com>
Wed, 22 Mar 2017 18:42:43 +0000 (18:42 +0000)
committerFrancis Ricci <francisjricci@gmail.com>
Wed, 22 Mar 2017 18:42:43 +0000 (18:42 +0000)
commitdc13921fbc19bb9455a582e25bf520ab3eb1b991
treec017770b998901b171ab141ce958c22e8a40feab
parent5713a05b5b7a5870b953f007c450ad195626e822
Factor lsan allocator cache accesses into a function

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

This will be followed by patches to move the function into OS-specific files.

Reviewers: kubamracek, kcc

Subscribers: llvm-commits

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

llvm-svn: 298537
compiler-rt/lib/lsan/lsan_allocator.cc