forked from OSchip/llvm-project
dfd9808b6c
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 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
README.txt | ||
memprof.syms.extra | ||
memprof_allocator.cpp | ||
memprof_allocator.h | ||
memprof_descriptions.cpp | ||
memprof_descriptions.h | ||
memprof_flags.cpp | ||
memprof_flags.h | ||
memprof_flags.inc | ||
memprof_init_version.h | ||
memprof_interceptors.cpp | ||
memprof_interceptors.h | ||
memprof_interceptors_memintrinsics.cpp | ||
memprof_interceptors_memintrinsics.h | ||
memprof_interface_internal.h | ||
memprof_internal.h | ||
memprof_linux.cpp | ||
memprof_malloc_linux.cpp | ||
memprof_mapping.h | ||
memprof_new_delete.cpp | ||
memprof_posix.cpp | ||
memprof_preinit.cpp | ||
memprof_rtl.cpp | ||
memprof_shadow_setup.cpp | ||
memprof_stack.cpp | ||
memprof_stack.h | ||
memprof_stats.cpp | ||
memprof_stats.h | ||
memprof_thread.cpp | ||
memprof_thread.h | ||
weak_symbols.txt |
README.txt
MemProfiling RT ================================ This directory contains sources of the MemProfiling (MemProf) runtime library. Directory structure: README.txt : This file. CMakeLists.txt : File for cmake-based build. memprof_*.{cc,h} : Sources of the memprof runtime library. Also MemProf runtime needs the following libraries: lib/interception/ : Machinery used to intercept function calls. lib/sanitizer_common/ : Code shared between various sanitizers. MemProf runtime can only be built by CMake. You can run MemProf tests from the root of your CMake build tree: make check-memprof