]> Cypherpunks repositories - gostls13.git/commit
runtime: tiny refactor in evacuate
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 17 Aug 2017 17:24:13 +0000 (10:24 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 18 Aug 2017 18:20:32 +0000 (18:20 +0000)
commit43d4c9f4f18cad9ac738e15e1721b8ef32c5e31c
tree76f2f7c357855f2f1459ebbd39f15c9346d4f188
parentb5c42111590e1b06d27a0a1e507eee29de39e01a
runtime: tiny refactor in evacuate

Since oldbucket == h.nevacuate, we can just increment h.nevacuate here.
This removes oldbucket from scope, which will be useful shortly.

Change-Id: I70f81ec3995f17845ebf5d77ccd20ea4338f23e6
Reviewed-on: https://go-review.googlesource.com/56932
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Avelino <t@avelino.xxx>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/hashmap.go