[PATCH] D35690: [Sanitizers] TSan allocator set errno on failure.
Aleksey Shlyapnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 20 10:28:36 PDT 2017
alekseyshl created this revision.
Herald added a subscriber: kubamracek.
Set proper errno code on allocation failures and change realloc, pvalloc,
aligned_alloc, memalign and posix_memalign implementation to satisfy
their man-specified requirements.
Modify allocator API implementation to bring it closer to other
sanitizers allocators.
https://reviews.llvm.org/D35690
Files:
lib/tsan/rtl/tsan_interceptors.cc
lib/tsan/rtl/tsan_malloc_mac.cc
lib/tsan/rtl/tsan_mman.cc
lib/tsan/rtl/tsan_mman.h
lib/tsan/rtl/tsan_new_delete.cc
lib/tsan/tests/unit/tsan_mman_test.cc
test/tsan/allocator_returns_null.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35690.107544.patch
Type: text/x-patch
Size: 20767 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170720/2f14a855/attachment.bin>
More information about the llvm-commits
mailing list