[sanitizer] Renamed local variable
authorVitaly Buka <vitalybuka@google.com>
Thu, 10 May 2018 04:16:44 +0000 (04:16 +0000)
committerVitaly Buka <vitalybuka@google.com>
Thu, 10 May 2018 04:16:44 +0000 (04:16 +0000)
llvm-svn: 331955

compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc

index cae63b2..0276235 100644 (file)
@@ -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;
 }