From: Keith Randall Date: Mon, 15 Sep 2014 19:30:57 +0000 (-0700) Subject: runtime: try harder to get different iteration orders. X-Git-Tag: go1.4beta1~406 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1e4f86e48550c1d04a3778948613f38a078e2801;p=gostls13.git 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 --- diff --git a/src/runtime/map_test.go b/src/runtime/map_test.go index 9b76a5bbf2..92da2d8209 100644 --- a/src/runtime/map_test.go +++ b/src/runtime/map_test.go @@ -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] {