diff options
author | Keith Randall <khr@golang.org> | 2014-09-15 12:30:57 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2014-09-15 12:30:57 -0700 |
commit | 4bf43f90f2cae8d8f8ab10e3a79f69c277fbb560 (patch) | |
tree | df3d67da8d442a49b400378c6e41e1b9e7745a89 /src | |
parent | 3cfc4d0a6264d491ef09bae82c17754cc898b603 (diff) | |
download | go-4bf43f90f2cae8d8f8ab10e3a79f69c277fbb560.tar.gz |
runtime: try harder to get different iteration orders.
Fixes issue 8736.
LGTM=iant, josharian
R=golang-codereviews, iant, josharian
CC=golang-codereviews
https://codereview.appspot.com/144910044
Diffstat (limited to 'src')
-rw-r--r-- | src/runtime/map_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/runtime/map_test.go b/src/runtime/map_test.go index 9b76a5bbf..92da2d820 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] { |