[PATCH] D34845: [LSan] Make LSan allocator allocator_may_return_null compliant

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 29 16:22:32 PDT 2017


alekseyshl created this revision.

An attempt to reland https://reviews.llvm.org/D34786 (which caused bot failres on Mac), now with
properly intercepted operators new() and delete().

LSan allocator used to always return nullptr on too big allocation requests
(the definition of "too big" depends on platform and bitness), now it
follows policy configured by allocator_may_return_null flag


https://reviews.llvm.org/D34845

Files:
  lib/lsan/lsan_allocator.cc
  lib/lsan/lsan_interceptors.cc
  test/lsan/TestCases/allocator_returns_null.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34845.104773.patch
Type: text/x-patch
Size: 10058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170629/787881b5/attachment.bin>


More information about the llvm-commits mailing list