[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
Fri Jun 23 17:55:50 PDT 2017


alekseyshl added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_allocator_primary64.h:454
-      Printf("%s: Out of memory. Dying. ", SanitizerToolName);
-      Printf("The process has exhausted %zuMB for size class %zu.\n",
-          kRegionSize / 1024 / 1024, size);
----------------
eugenis wrote:
> Do you want to keep this error message?
> I think it was helpful on a couple of occasions.
Well, ok, I'll bring it back. It'll require a flag to show it only once though, otherwise the client which can survive null returned by malloc might be spammed by those messages.


https://reviews.llvm.org/D34540





More information about the llvm-commits mailing list