[all-commits] [llvm/llvm-project] 0caad9: [lsan] On Fuchsia, don't use atexit hook for leak ...
Roland McGrath via All-commits
all-commits at lists.llvm.org
Wed Sep 23 11:11:21 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0caad9fe441d5ee562e96d8b30b5574b492a933a
https://github.com/llvm/llvm-project/commit/0caad9fe441d5ee562e96d8b30b5574b492a933a
Author: Roland McGrath <mcgrathr at google.com>
Date: 2020-09-23 (Wed, 23 Sep 2020)
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
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, phosek
Differential Revision: https://reviews.llvm.org/D86171
More information about the All-commits
mailing list