[all-commits] [llvm/llvm-project] 6f6131: sanitizer_common: Suppress another thread safety w...
Benjamin Kramer via All-commits
all-commits at lists.llvm.org
Mon Jul 12 08:58:13 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6f6131815e2cedac66bf63d918d36da38526ccbe
https://github.com/llvm/llvm-project/commit/6f6131815e2cedac66bf63d918d36da38526ccbe
Author: Benjamin Kramer <benny.kra at googlemail.com>
Date: 2021-07-12 (Mon, 12 Jul 2021)
Changed paths:
M compiler-rt/lib/scudo/scudo_tsd_shared.cpp
Log Message:
-----------
sanitizer_common: Suppress another thread safety warning
Another follow-up to 0da172b1766e1559ef677aa836dce4f1995dfef3
compiler-rt/lib/scudo/scudo_tsd_shared.cpp:103:1: error: mutex 'CandidateTSD->Mutex' is not held on every path through here [-Werror,-Wthread-safety-analysis]
}
^
compiler-rt/lib/scudo/scudo_tsd_shared.cpp:95:21: note: mutex acquired here
CandidateTSD->lock();
^
compiler-rt/lib/scudo/scudo_tsd_shared.cpp:103:1: error: mutex 'TSD->Mutex' is not held on every path through here [-Werror,-Wthread-safety-analysis]
}
^
compiler-rt/lib/scudo/scudo_tsd_shared.cpp:101:8: note: mutex acquired here
TSD->lock();
^
compiler-rt/lib/scudo/scudo_tsd_shared.cpp:103:1: error: mutex 'TSDs[Index].Mutex' is not held on every path through here [-Werror,-Wthread-safety-analysis]
}
^
compiler-rt/lib/scudo/scudo_tsd_shared.cpp:80:23: note: mutex acquired here
if (TSDs[Index].tryLock()) {
^
More information about the All-commits
mailing list