Skip to content

Commit 6e4abe8

Browse files
randall77gopherbot
authored andcommitted
doc: mention stack allocation of slices
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>
1 parent 88c24de commit 6e4abe8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/next/5-toolchain.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
## Compiler {#compiler}
22

3+
<!-- CLs 707755, 722440 -->
4+
5+
The compiler can now allocate the backing store for slices on the stack in more
6+
situations, which improves performance. If this change is causing trouble, the
7+
[bisect tool](https://pkg.go.dev/golang.org/x/tools/cmd/bisect) can be used to
8+
find the allocation causing trouble using the `-compile=variablemake` flag. All
9+
such new stack allocations can also be turned off using
10+
`-gcflags=all=-d=variablemakehash=n`.
11+
312
## Assembler {#assembler}
413

514
## Linker {#linker}

0 commit comments

Comments
 (0)