[compiler-rt] r331955 - [sanitizer] Renamed local variable
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed May 9 21:16:44 PDT 2018
Author: vitalybuka
Date: Wed May 9 21:16:44 2018
New Revision: 331955
URL: http://llvm.org/viewvc/llvm-project?rev=331955&view=rev
Log:
[sanitizer] Renamed local variable
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc?rev=331955&r1=331954&r2=331955&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc Wed May 9 21:16:44 2018
@@ -209,25 +209,25 @@ void ThreadSuspender::KillAllThreads() {
bool ThreadSuspender::SuspendAllThreads() {
ThreadLister thread_lister(pid_);
- bool added_threads;
+ bool retry;
InternalMmapVector<tid_t> threads;
threads.reserve(128);
do {
- added_threads = false;
+ retry = false;
switch (thread_lister.ListThreads(&threads)) {
case ThreadLister::Error:
ResumeAllThreads();
return false;
case ThreadLister::Incomplete:
- added_threads = true;
+ retry = true;
break;
case ThreadLister::Ok:
break;
}
for (tid_t tid : threads)
if (SuspendThread(tid))
- added_threads = true;
- } while (added_threads);
+ retry = true;
+ } while (retry);
return true;
}
More information about the llvm-commits
mailing list