[compiler-rt] [NFC][sanitizer] Add Debug utility to print thread history (PR #111948)

via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 13 06:33:11 PDT 2024


Enna1 wrote:

> > Will uses of [`__asan::DescribeThread`](https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/asan/asan_descriptions.cpp#L39) be replaced with `__sanitizer::PrintThreadHistory` introduced in this patch?
> 
> I don't have plans to do so any time soon.
> 
> Long term I am not sure. WDYT?
> 
> DescribeThread prints, 1-thread + 1-stack and OK for existing application PrintThreadHistory deduplicate stacks.

Currently, only Asan and MemProf "share" the same implementation of `DescribeThread`, and there is no use of `DescribeThread` in MemProf,  not sure if it's worth extracting `DescribeThread` into sanitizer_thread_history.cpp.

https://github.com/llvm/llvm-project/pull/111948


More information about the llvm-commits mailing list