File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/tools/miri/src/concurrency Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -728,7 +728,7 @@ impl<'tcx> ThreadManager<'tcx> {
728728 }
729729 // No callbacks immediately scheduled, pick a regular thread to execute.
730730 // The active thread blocked or yielded. So we go search for another enabled thread.
731- // We build the list of threads by starting with the thread after the current one, followed by
731+ // We build the list of threads by starting with the threads after the current one, followed by
732732 // the threads before the current one and then the current thread itself (i.e., this iterator acts
733733 // like `threads.rotate_left(self.active_thread.index() + 1)`. This ensures that if we pick the first
734734 // eligible thread, we do regular round-robin scheduling, and all threads get a chance to take a step.
@@ -752,7 +752,7 @@ impl<'tcx> ThreadManager<'tcx> {
752752 self . active_thread = id;
753753 }
754754 }
755- //This completes the `yield`, if any was requested.
755+ // This completes the `yield`, if any was requested.
756756 self . yield_active_thread = false ;
757757
758758 if self . threads [ self . active_thread ] . state . is_enabled ( ) {
You can’t perform that action at this time.
0 commit comments