]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use more of internal/bisect in HashDebug
authorRuss Cox <rsc@golang.org>
Tue, 9 May 2023 03:18:38 +0000 (23:18 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 9 May 2023 16:07:06 +0000 (16:07 +0000)
commitda5a3146ec903cdcb779d501be4ff88fd775820e
tree12c4fce48a5d3d1ea05fb08a5cf7578e77bb268d
parentffc4cc05f596a38c19f0d7e1ee91f17527ac3b37
cmd/compile: use more of internal/bisect in HashDebug

Using more of internal/bisect gives us more that will be deleted
from base/hashdebug.go when we have updated the tools that
need the old protocol. It is also cheaper: there is no allocation to
make a decision about whether to enable, and no locking unless
printing is needed.

Change-Id: I43ec398461205a1a9e988512a134ed6b3a3b1587
Reviewed-on: https://go-review.googlesource.com/c/go/+/493736
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/base/hashdebug.go
src/cmd/compile/internal/base/hashdebug_test.go
src/cmd/compile/internal/loopvar/loopvar.go
src/cmd/compile/internal/loopvar/loopvar_test.go
src/cmd/compile/internal/ssa/func.go