[PATCH] D27003: Return memory to OS right after free (not in the async thread).
Aleksey Shlyapnikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 22 14:31:20 PST 2016
alekseyshl created this revision.
alekseyshl added a reviewer: eugenis.
alekseyshl added a subscriber: llvm-commits.
Herald added subscribers: kubabrecka, danalbert.
In order to avoid starting a separate thread to return unused memory to
the system (the thread interferes with process startup on Android,
Zygota waits for all threads to exit before fork, but this thread never
exits), try to return it right after free.
https://reviews.llvm.org/D27003
Files:
lib/asan/asan_allocator.cc
lib/asan/asan_allocator.h
lib/lsan/lsan_allocator.cc
lib/msan/msan_allocator.cc
lib/sanitizer_common/sanitizer_allocator.cc
lib/sanitizer_common/sanitizer_allocator_combined.h
lib/sanitizer_common/sanitizer_allocator_primary32.h
lib/sanitizer_common/sanitizer_allocator_primary64.h
lib/sanitizer_common/sanitizer_common.h
lib/sanitizer_common/sanitizer_common_libcdep.cc
lib/sanitizer_common/sanitizer_flag_parser.h
lib/sanitizer_common/sanitizer_flags.inc
lib/sanitizer_common/tests/sanitizer_allocator_test.cc
lib/scudo/scudo_allocator.cpp
lib/scudo/scudo_allocator.h
lib/tsan/rtl/tsan_mman.cc
test/asan/TestCases/Linux/release_to_os_test.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27003.78951.patch
Type: text/x-patch
Size: 23991 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161122/35bc805a/attachment.bin>
More information about the llvm-commits
mailing list