diff --git a/doc/next/5-toolchain.md b/doc/next/5-toolchain.md index b5893288e5c..523e3f89fbe 100644 --- a/doc/next/5-toolchain.md +++ b/doc/next/5-toolchain.md @@ -1,5 +1,14 @@ ## Compiler {#compiler} + + +The compiler can now allocate the backing store for slices on the stack in more +situations, which improves performance. If this change is causing trouble, the +[bisect tool](https://pkg.go.dev/golang.org/x/tools/cmd/bisect) can be used to +find the allocation causing trouble using the `-compile=variablemake` flag. All +such new stack allocations can also be turned off using +`-gcflags=all=-d=variablemakehash=n`. + ## Assembler {#assembler} ## Linker {#linker}