[TTC-8][Sanitizers] 64 bit allocator respects allocator_may_return_null flag 37/149937/3
authorAlex Shlyapnikov <alekseys@google.com>
Wed, 13 Sep 2017 13:22:49 +0000 (16:22 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Fri, 20 Oct 2017 08:25:12 +0000 (08:25 +0000)
commit3fbeb464f7267fdfadc74ede9ce8473f823a5244
tree0d8fddc15c63088c7b7981aa9439ed40dfc3299a
parentd053aec2b788f18e016369baaaf3a73c3c6ff7cb
[TTC-8][Sanitizers] 64 bit allocator respects allocator_may_return_null flag

Summary:
Make SizeClassAllocator64 return nullptr when it encounters OOM, which
allows the entire sanitizer's allocator to follow
allocator_may_return_null=1 policy
(LargeMmapAllocator: D34243, SizeClassAllocator64: D34433).

Reviewers: eugenis

Subscribers: srhines, kubamracek, llvm-commits

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

Change-Id: I0e72b4b22a440eb644dcc370da0ba9aa0e71c2d5
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@306342 91177308-0d34-0410-b5e6-96231b3b80d8
libsanitizer/sanitizer_common/sanitizer_allocator_local_cache.h
libsanitizer/sanitizer_common/sanitizer_allocator_primary64.h
libsanitizer/sanitizer_common/sanitizer_common.h
libsanitizer/sanitizer_common/sanitizer_posix.cc
libsanitizer/sanitizer_common/sanitizer_win.cc