[compiler-rt] f6fd7b2 - [NFC][lsan] Add SuspendAllThreads traces
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 4 23:19:17 PDT 2024
Author: Vitaly Buka
Date: 2024-10-04T22:53:37-07:00
New Revision: f6fd7b24c5955ce772f1afa4314a2d3434c458d5
URL: https://github.com/llvm/llvm-project/commit/f6fd7b24c5955ce772f1afa4314a2d3434c458d5
DIFF: https://github.com/llvm/llvm-project/commit/f6fd7b24c5955ce772f1afa4314a2d3434c458d5.diff
LOG: [NFC][lsan] Add SuspendAllThreads traces
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
index 526a71c398260d..73ba884052a3a3 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
@@ -217,6 +217,7 @@ bool ThreadSuspender::SuspendAllThreads() {
switch (thread_lister.ListThreads(&threads)) {
case ThreadLister::Error:
ResumeAllThreads();
+ Report("Failed to list threads\n");
return false;
case ThreadLister::Incomplete:
retry = true;
@@ -228,6 +229,8 @@ bool ThreadSuspender::SuspendAllThreads() {
if (SuspendThread(tid))
retry = true;
}
+ if (retry)
+ VReport(1, "SuspendAllThreads retry: %d\n", i);
}
return suspended_threads_list_.ThreadCount();
}
More information about the llvm-commits
mailing list