hanchenye-llvm-project/compiler-rt/lib/lsan
Evgeniy Stepanov d3305afc75 Return memory to OS right after free (not in the async thread).
Summary:
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.

Reviewers: eugenis

Subscribers: cryptoad, filcab, danalbert, kubabrecka, llvm-commits

Patch by Aleksey Shlyapnikov.

Differential Revision: https://reviews.llvm.org/D27003

llvm-svn: 288091
2016-11-29 00:22:50 +00:00
..
.clang-format Tell clang-format that (most) sanitizers are written using Google style guide. 2015-11-19 22:11:10 +00:00
CMakeLists.txt [CMake] Connect Compiler-RT targets to LLVM Runtimes directory 2016-08-26 20:52:22 +00:00
lsan.cc [sanitizer] [SystemZ] Abort if the kernel might be vulnerable to CVE-2016-2143. 2016-04-27 17:42:00 +00:00
lsan.h [LSAN] Fix test swapcontext.cc on MIPS 2016-05-18 06:09:26 +00:00
lsan_allocator.cc Return memory to OS right after free (not in the async thread). 2016-11-29 00:22:50 +00:00
lsan_allocator.h
lsan_common.cc [asan/lsan] Avoid possible deadlock in dynamic ASan runtime thread initialization. 2016-10-28 06:49:53 +00:00
lsan_common.h [LSan] Ignore all allocations made inside pthread_create. 2016-01-16 00:57:25 +00:00
lsan_common_linux.cc [lsan] Relax check for allocator_end in ProcessGlobalRegionsCallback. 2016-10-26 06:56:51 +00:00
lsan_flags.inc [LSan] Add "use_ld_allocations" flag to disable old way of DTLS handling. 2016-01-14 19:16:05 +00:00
lsan_interceptors.cc [LSan] Ignore all allocations made inside pthread_create. 2016-01-16 00:57:25 +00:00
lsan_preinit.cc
lsan_thread.cc [compiler-rt][lsan] Fix compiler error due to attribute (windows) 2016-09-23 15:11:41 +00:00
lsan_thread.h [LSan] Use __tls_get_addr interceptor to keep track of dynamic TLS. 2016-01-14 18:50:09 +00:00