aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/export_test.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2013-10-04 13:54:03 -0700
committerKeith Randall <khr@golang.org>2013-10-04 13:54:03 -0700
commit869368a528cf4a8b154176b34182dbfa4a42f21a (patch)
tree5223f2740ae7ad253cc5f5e5d49d48809d48b68b /src/pkg/runtime/export_test.go
parent15baf6b4ace720e7b2cfe5911d43aa9ede1a4f97 (diff)
downloadgo-869368a528cf4a8b154176b34182dbfa4a42f21a.tar.xz
runtime: fix bug in maps at the intersection of iterators, growing, and NaN keys
If an iterator is started while a map is in the middle of a grow, and the map has NaN keys, then those keys might get returned by the iterator more than once. This fix makes the evacuation decision deterministic and repeatable for NaN keys so each one gets returned only once. R=golang-dev, r, khr, iant CC=golang-dev https://golang.org/cl/14367043
Diffstat (limited to 'src/pkg/runtime/export_test.go')
-rw-r--r--src/pkg/runtime/export_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/runtime/export_test.go b/src/pkg/runtime/export_test.go
index 01d0ed667f..d170fa72ae 100644
--- a/src/pkg/runtime/export_test.go
+++ b/src/pkg/runtime/export_test.go
@@ -81,3 +81,6 @@ var Int32Hash = int32Hash
var Int64Hash = int64Hash
func GogoBytes() int32
+
+var hashLoad float64 // declared in hashmap.c
+var HashLoad = &hashLoad