[PATCH] D27228: Release memory to OS only when the requested range covers the entire page
Aleksey Shlyapnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 29 14:34:24 PST 2016
alekseyshl created this revision.
alekseyshl added a reviewer: eugenis.
alekseyshl added a subscriber: llvm-commits.
Herald added a subscriber: kubabrecka.
The current code was sometimes attempting to release huge chunks of
memory due to undesired RoundUp/RoundDown interaction when the requested
range is fully contained within one memory page.
https://reviews.llvm.org/D27228
Files:
lib/asan/asan_poisoning.cc
lib/asan/asan_poisoning.h
lib/msan/msan_allocator.cc
lib/sanitizer_common/sanitizer_allocator_primary64.h
lib/sanitizer_common/sanitizer_common.h
lib/sanitizer_common/sanitizer_posix_libcdep.cc
lib/sanitizer_common/sanitizer_win.cc
lib/tsan/rtl/tsan_platform_linux.cc
lib/tsan/rtl/tsan_rtl.cc
lib/tsan/rtl/tsan_rtl_thread.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27228.79645.patch
Type: text/x-patch
Size: 6567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161129/852552e4/attachment.bin>
More information about the llvm-commits
mailing list