]> Cypherpunks repositories - gostls13.git/commit
runtime: detect hash map collision problems
authorRuss Cox <rsc@golang.org>
Sun, 24 Jun 2012 23:47:50 +0000 (19:47 -0400)
committerRuss Cox <rsc@golang.org>
Sun, 24 Jun 2012 23:47:50 +0000 (19:47 -0400)
commitbca01cd0bfdb9bfda3f076697bda4fae27d4e768
tree78f5379af871823f3a45f04933561d0877853111
parent35c3afdb62809e40422b5590d807418697ba8660
runtime: detect hash map collision problems

This can only happen if the hash function we're using is getting
far more than it's fair share of collisions, but that has happened
to us repeatedly as we've expanded the allowed use cases for
hash tables (issue 1544, issue 2609, issue 2630, issue 2883, issue 3695).
Maybe this will help the next time we try something new.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6306083
src/pkg/runtime/hashmap.c