diff options
author | Alex Shlyapnikov <alekseys@google.com> | 2017-06-22 00:02:37 +0000 |
---|---|---|
committer | Alex Shlyapnikov <alekseys@google.com> | 2017-06-22 00:02:37 +0000 |
commit | f3cc7cc3d868d967a59b35e3ab65c1e340beeb70 (patch) | |
tree | 0db6f7aca3ee1a1a8b0942d95c9e39d574d4e18f /llvm/tools/llvm-readobj/llvm-readobj.cpp | |
parent | fe6414b043eb2e5dcd7a6da65a1dc064a2f727d9 (diff) | |
download | bcm5719-llvm-f3cc7cc3d868d967a59b35e3ab65c1e340beeb70.tar.gz bcm5719-llvm-f3cc7cc3d868d967a59b35e3ab65c1e340beeb70.zip |
[Sanitizers] 32 bit allocator respects allocator_may_return_null flag
Summary:
Make SizeClassAllocator32 return nullptr when it encounters OOM, which
allows the entire sanitizer's allocator to follow allocator_may_return_null=1
policy, even for small allocations (LargeMmapAllocator is already fixed
by D34243).
Will add a test for OOM in primary allocator later, when
SizeClassAllocator64 can gracefully handle OOM too.
Reviewers: eugenis
Subscribers: kubamracek, llvm-commits
Differential Revision: https://reviews.llvm.org/D34433
llvm-svn: 305972
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions