]> Cypherpunks repositories - gostls13.git/commitdiff
doc: mention stack allocation of slices
authorKeith Randall <khr@golang.org>
Tue, 2 Dec 2025 22:22:34 +0000 (14:22 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 2 Dec 2025 22:43:05 +0000 (14:43 -0800)
Very similar to last release's note.

Change-Id: Ie7afe21d98cee1c9718e53b20e8af8ee18504bb9
Reviewed-on: https://go-review.googlesource.com/c/go/+/725921
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Keith Randall <khr@golang.org>

doc/next/5-toolchain.md

index b5893288e5cbf0a432c928de820d8d2ddb1218f8..523e3f89fbe3f3893a0da7aeea322981ccc9022e 100644 (file)
@@ -1,5 +1,14 @@
 ## Compiler {#compiler}
 
+<!-- CLs 707755, 722440 -->
+
+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}