[all-commits] [llvm/llvm-project] fd7ec9: [lsan] On Fuchsia, don't use atexit hook for leak ...
Roland McGrath via All-commits
all-commits at lists.llvm.org
Tue Mar 29 17:14:13 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fd7ec90abd90ce845b5ba12a6de50681044f79c3
https://github.com/llvm/llvm-project/commit/fd7ec90abd90ce845b5ba12a6de50681044f79c3
Author: Roland McGrath <mcgrathr at google.com>
Date: 2022-03-29 (Tue, 29 Mar 2022)
Changed paths:
M compiler-rt/lib/asan/asan_fuchsia.cpp
M compiler-rt/lib/asan/asan_internal.h
M compiler-rt/lib/asan/asan_posix.cpp
M compiler-rt/lib/asan/asan_rtl.cpp
M compiler-rt/lib/asan/asan_win.cpp
M compiler-rt/lib/lsan/lsan.cpp
M compiler-rt/lib/lsan/lsan.h
M compiler-rt/lib/lsan/lsan_common_fuchsia.cpp
M compiler-rt/lib/lsan/lsan_fuchsia.cpp
M compiler-rt/lib/lsan/lsan_posix.cpp
Log Message:
-----------
[lsan] On Fuchsia, don't use atexit hook for leak checks
This is a re-land of https://reviews.llvm.org/D86171 with fix.
Fuchsia's system libraries are instrumented and use the lsan
allocator for internal purposes. So leak checking needs to run
after all atexit hooks and after the system libraries' internal
exit-time hooks. The <zircon/sanitizer.h> hook API calls the
__sanitizer_process_exit_hook function at exactly the right time.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D88248
More information about the All-commits
mailing list