[LSan] Factor lsan allocator cache accesses into a function 49/192249/5
authorFrancis Ricci <francisjricci@gmail.com>
Thu, 25 Oct 2018 11:26:37 +0000 (14:26 +0300)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Fri, 11 Jan 2019 14:04:30 +0000 (17:04 +0300)
commit446908d74aabb0048636a8b97476ed95918fd7be
treece291170845de8e0e56ad0cf0034a12ef8b6369f
parenteb8a27c4157d7944cccdbdfac4f5f7a295bf2ee2
[LSan] 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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@298537 91177308-0d34-0410-b5e6-96231b3b80d8

Backport:
  http://llvm.org/git/compiler-rt 65ede46c

Change-Id: Icd528cc4e96c63489c7d25cbb3af100a32d4a26f
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
libsanitizer/lsan/lsan_allocator.cc