[lsan] Add logs for debugging

This commit is contained in:
Vitaly Buka 2022-11-28 22:58:46 -08:00
parent 2f8ac18048
commit ca3c58f0d1
1 changed files with 4 additions and 1 deletions

View File

@ -741,8 +741,11 @@ static bool PrintResults(LeakReport &report) {
}
static bool CheckForLeaks() {
if (&__lsan_is_turned_off && __lsan_is_turned_off())
if (&__lsan_is_turned_off && __lsan_is_turned_off()) {
VReport(1, "LeakSanitizer is disabled");
return false;
}
VReport(1, "LeakSanitizer: checking for leaks");
// Inside LockStuffAndStopTheWorld we can't run symbolizer, so we can't match
// suppressions. However if a stack id was previously suppressed, it should be
// suppressed in future checks as well.