• Russ Cox's avatar
    runtime: detect hash map collision problems · bca01cd0
    Russ Cox authored
    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
    bca01cd0
hashmap.c 30.6 KB