llvm-project/compiler-rt/lib/lsan
Dmitry Vyukov dfd9808b6c sanitizer_common: add simpler ThreadRegistry ctor
Currently ThreadRegistry is overcomplicated because of tsan,
it needs tid quarantine and reuse counters. Other sanitizers
don't need that. It also seems that no other sanitizer now
needs max number of threads. Asan used to need 2^24 limit,
but it does not seem to be needed now. Other sanitizers blindly
copy-pasted that without reasons. Lsan also uses quarantine,
but I don't see why that may be potentially needed.

Add a ThreadRegistry ctor that does not require any sizes
and use it in all sanitizers except for tsan.
In preparation for new tsan runtime, which won't need
any of these parameters as well.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D105713
2021-07-13 22:52:25 -07:00
..
.clang-format [sanitizer] Set IndentPPDirectives: AfterHash in .clang-format 2021-05-03 13:49:41 -07:00
CMakeLists.txt [NFC][LSAN] Remove unused variable 2020-11-04 14:02:28 -08:00
lsan.cpp [sanitizer] Simplify __sanitizer::BufferedStackTrace::UnwindImpl implementations 2021-05-13 21:26:31 -07:00
lsan.h Revert "[lsan] On Fuchsia, don't use atexit hook for leak checks" 2020-09-23 21:10:56 +02:00
lsan_allocator.cpp [lsan] realloc: don't deallocate if requested size is too large 2021-03-29 13:35:10 -07:00
lsan_allocator.h [LSan][RISCV] Enable LSan for RISCV64 2021-01-31 21:53:25 +00:00
lsan_common.cpp [sanitizer] Remove max_len parameter from InternalScopedString 2021-03-17 16:57:09 -07:00
lsan_common.h sanitizer_common: add thread safety annotations 2021-07-12 11:46:49 +02:00
lsan_common_fuchsia.cpp [NFC][sanitizer] Simplify InternalLowerBound 2020-12-29 14:01:43 -08:00
lsan_common_linux.cpp Reland [lsan] Enable LSAN for Android 2020-11-04 18:00:25 -08:00
lsan_common_mac.cpp [lsan] Expose Frontier object to OS-specific LockStuffAndStopTheWorld callback 2020-01-24 16:53:35 -08:00
lsan_flags.inc
lsan_fuchsia.cpp Revert "[lsan] On Fuchsia, don't use atexit hook for leak checks" 2020-09-23 21:10:56 +02:00
lsan_fuchsia.h [lsan] Use final on Fuchsia ThreadContext declaration 2020-12-02 11:58:03 -08:00
lsan_interceptors.cpp sanitizer_common: introduce kInvalidTid/kMainTid 2021-04-30 15:58:05 +02:00
lsan_linux.cpp [lsan] Support LeakSanitizer runtime on Fuchsia 2020-01-28 11:34:53 -08:00
lsan_mac.cpp Remove NOLINTs from compiler-rt 2019-09-11 23:19:48 +00:00
lsan_malloc_mac.cpp compiler-rt: Rename .cc file in lib/lsan to .cpp 2019-08-01 14:01:30 +00:00
lsan_posix.cpp sanitizer_common: introduce kInvalidTid/kMainTid 2021-04-30 15:58:05 +02:00
lsan_posix.h [sanitizer] Make destructors protected 2020-11-02 18:00:43 -08:00
lsan_preinit.cpp compiler-rt: Rename .cc file in lib/lsan to .cpp 2019-08-01 14:01:30 +00:00
lsan_thread.cpp sanitizer_common: add simpler ThreadRegistry ctor 2021-07-13 22:52:25 -07:00
lsan_thread.h [NFC] Fix cpplint warnings 2020-11-04 22:56:08 -08:00
weak_symbols.txt