]> Cypherpunks repositories - gostls13.git/commit
runtime: refactor hmap setoverflow into newoverflow
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 13 Apr 2017 12:25:20 +0000 (05:25 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 19 Apr 2017 13:41:44 +0000 (13:41 +0000)
commit619af172055dccfd92a87ec116236ef3a885ac2c
treec864325673e2b16b307e73e804307d2771964ad2
parentdc444418d919b72f7744a521cc898252f3f355df
runtime: refactor hmap setoverflow into newoverflow

This simplifies the code, as well as providing
a single place to modify to change the
allocation of new overflow buckets.

Updates #19931
Updates #19992

Change-Id: I77070619f5c8fe449bbc35278278bca5eda780f2
Reviewed-on: https://go-review.googlesource.com/40975
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/hashmap.go
src/runtime/hashmap_fast.go