llvm-project/compiler-rt/lib/lsan
Roland McGrath fd7ec90abd [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
2022-03-29 17:13:55 -07:00
..
.clang-format Revert "sanitizers: increase .clang-format columns to 100" 2021-07-28 09:40:21 +02:00
CMakeLists.txt [compiler-rt] separate lsan, ubsan, stats configuration from SANITIZER_COMMON_SUPPORTED_OS 2021-11-10 19:16:20 -08:00
lsan.cpp [lsan] On Fuchsia, don't use atexit hook for leak checks 2022-03-29 17:13:55 -07:00
lsan.h [lsan] On Fuchsia, don't use atexit hook for leak checks 2022-03-29 17:13:55 -07:00
lsan_allocator.cpp Change __lsan::kMaxAllowedMallocSize literal types to unsigned long long 2021-12-07 10:38:13 -08:00
lsan_allocator.h [lsan] ppc64: dynamically pick address range for allocator 2022-03-11 20:16:17 -08:00
lsan_common.cpp [lsan] Allow suppression of "unknown module" 2022-03-15 13:35:21 -07:00
lsan_common.h sanitizer_common: prefix thread-safety macros with SANITIZER_ 2022-01-07 15:11:00 +01:00
lsan_common_fuchsia.cpp [lsan] On Fuchsia, don't use atexit hook for leak checks 2022-03-29 17:13:55 -07:00
lsan_common_linux.cpp [NFC][lsan] Refactor LockThreadRegistry/LockAllocator calls 2021-12-06 22:27:11 -08:00
lsan_common_mac.cpp [ASan][Darwin] Avoid crash during ASan initialization 2022-01-07 12:28:38 -08:00
lsan_flags.inc
lsan_fuchsia.cpp [lsan] On Fuchsia, don't use atexit hook for leak checks 2022-03-29 17:13:55 -07:00
lsan_fuchsia.h [lsan] Use final on Fuchsia ThreadContext declaration 2020-12-02 11:58:03 -08:00
lsan_interceptors.cpp [sanitizer] DEFINE_REAL_PTHREAD_FUNCTIONS for hwasan, lsan, msan 2021-12-02 10:24:04 -08:00
lsan_linux.cpp [lsan] Support LeakSanitizer runtime on Fuchsia 2020-01-28 11:34:53 -08:00
lsan_mac.cpp lsan: remove pthread_detach/join interceptors 2021-11-17 14:49:15 +01:00
lsan_malloc_mac.cpp
lsan_posix.cpp [lsan] On Fuchsia, don't use atexit hook for leak checks 2022-03-29 17:13:55 -07:00
lsan_posix.h [sanitizer] Make destructors protected 2020-11-02 18:00:43 -08:00
lsan_preinit.cpp
lsan_thread.cpp lsan: remove pthread_detach/join interceptors 2021-11-17 14:49:15 +01:00
lsan_thread.h lsan: remove pthread_detach/join interceptors 2021-11-17 14:49:15 +01:00
weak_symbols.txt