[PATCH] D34540: [Sanitizers] 64 bit allocator respects allocator_may_return_null flag

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 22 15:56:08 PDT 2017


alekseyshl created this revision.
Herald added subscribers: kubamracek, srhines.

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


https://reviews.llvm.org/D34540

Files:
  lib/sanitizer_common/sanitizer_allocator_local_cache.h
  lib/sanitizer_common/sanitizer_allocator_primary64.h
  lib/sanitizer_common/sanitizer_common.h
  lib/sanitizer_common/sanitizer_posix.cc
  lib/sanitizer_common/sanitizer_win.cc
  lib/sanitizer_common/tests/sanitizer_allocator_test.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34540.103655.patch
Type: text/x-patch
Size: 17075 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170622/35bcae9f/attachment.bin>


More information about the llvm-commits mailing list