]> Cypherpunks repositories - gostls13.git/commit
internal/godebug: add bisect support
authorRuss Cox <rsc@golang.org>
Wed, 3 May 2023 13:54:46 +0000 (09:54 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 9 May 2023 15:20:20 +0000 (15:20 +0000)
commit81a31f5dd542f9a4d656067c9ed3298fcfb6cfea
tree07f7d442d067ba358954e32d93a4ef7e2bbafc6f
parent93897960cb8462f5eefeaffeaa938fb9de5155e7
internal/godebug: add bisect support

CL 491875 introduces a new bisect command, which we plan to
document for use by end users to debug semantic changes in
the compiler and in GODEBUGs.

This CL adds bisect support to GODEBUGs, at least the ones
used via internal/godebug. Support for runtime-internal
GODEBUGs like panicnil will take a bit more work in followup CLs.

The new API in internal/bisect to support stack-based bisecting
should be easily reusable in non-GODEBUG settings as well,
once we finalize and export the API.

Change-Id: I6cf779c775329aceb3f3b2b2b2f221ce8a67deee
Reviewed-on: https://go-review.googlesource.com/c/go/+/491975
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/base/hashdebug.go
src/go/build/deps_test.go
src/internal/bisect/bisect.go
src/internal/bisect/bisect_test.go [deleted file]
src/internal/godebug/godebug.go
src/internal/godebug/godebug_test.go