mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
2eae474673
make Miri's scheduler proper round-robin When thread N blocks or yields, we activate thread N+1 next, rather than always activating thread 0. This should guarantee that as long as all threads regularly yield, each thread eventually takes a step again. Fixes the "multiple loops that yield playing ping-pong" part of https://github.com/rust-lang/miri/issues/1388. `@cbeuw` I hope this doesn't screw up the scheduler-dependent tests you are adding in your PR.