]> Cypherpunks repositories - gostls13.git/commit
runtime: move evacuateX evacuateY relation check from makemap to evacuate
authorMartin Möhrmann <moehrmann@google.com>
Fri, 8 Sep 2017 21:05:19 +0000 (23:05 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Wed, 13 Sep 2017 06:13:27 +0000 (06:13 +0000)
commita4956248a8b15cc8bb2fabce0be4a802e965ec3c
tree0e5d4d9749f064e074ad3a378402e3ffdd2e5ab2
parent701d49245fcbe9cf095be2afadab0a68986acb72
runtime: move evacuateX evacuateY relation check from makemap to evacuate

Move the check near the code in evacuate that relies on
the relation evacuateX+1 == evacuateY.

If the relation is fullfilled the check is known to be true
at compile time and removed by the compiler.

Change-Id: I711b75e09047bf347819ccaeec41d244a5883867
Reviewed-on: https://go-review.googlesource.com/62410
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/hashmap.go