Skip to content

Commit f6fd7b2

Browse files
committed
[NFC][lsan] Add SuspendAllThreads traces
1 parent 9766ce4 commit f6fd7b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ bool ThreadSuspender::SuspendAllThreads() {
217217
switch (thread_lister.ListThreads(&threads)) {
218218
case ThreadLister::Error:
219219
ResumeAllThreads();
220+
Report("Failed to list threads\n");
220221
return false;
221222
case ThreadLister::Incomplete:
222223
retry = true;
@@ -228,6 +229,8 @@ bool ThreadSuspender::SuspendAllThreads() {
228229
if (SuspendThread(tid))
229230
retry = true;
230231
}
232+
if (retry)
233+
VReport(1, "SuspendAllThreads retry: %d\n", i);
231234
}
232235
return suspended_threads_list_.ThreadCount();
233236
}

0 commit comments

Comments
 (0)