summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-readobj/llvm-readobj.cpp
diff options
context:
space:
mode:
authorAlex Shlyapnikov <alekseys@google.com>2017-06-22 00:02:37 +0000
committerAlex Shlyapnikov <alekseys@google.com>2017-06-22 00:02:37 +0000
commitf3cc7cc3d868d967a59b35e3ab65c1e340beeb70 (patch)
tree0db6f7aca3ee1a1a8b0942d95c9e39d574d4e18f /llvm/tools/llvm-readobj/llvm-readobj.cpp
parentfe6414b043eb2e5dcd7a6da65a1dc064a2f727d9 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud