Commit 1e4f86e4 authored by Keith Randall's avatar Keith Randall

runtime: try harder to get different iteration orders.

Fixes #8736.

LGTM=iant, josharian
R=golang-codereviews, iant, josharian
CC=golang-codereviews
https://golang.org/cl/144910044
parent f197988c
......@@ -462,8 +462,9 @@ NextRound:
first = append(first, i)
}
// 80 chances to get a different iteration order.
for n := 0; n < 80; n++ {
// 800 chances to get a different iteration order.
// See bug 8736 for why we need so many tries.
for n := 0; n < 800; n++ {
idx := 0
for i := range m {
if i != first[idx] {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment