]> Cypherpunks repositories - gostls13.git/commit
runtime: refactor fpunwindExpand to use provided buffer
authorNick Ripley <nick.ripley@datadoghq.com>
Mon, 20 Nov 2023 01:01:57 +0000 (20:01 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 13 May 2024 16:41:50 +0000 (16:41 +0000)
commitb5bfb5a3ce7c6d993dab40d9b92c06b873ecd404
treeaf3cd8e4616578770aee5db27b422c8d6d985c18
parentf43d9c40f382def04442898d7581402759bff36a
runtime: refactor fpunwindExpand to use provided buffer

fpunwindExpand currently allocates a new slice to hold the expanded call
stack. In each place it's used, the resulting slice won't be needed
immediately afterward, so the allocation is wasteful. Refactor
fpunwindExpand to instead expand the call stack into a provided buffer.

Change-Id: I05b26c191a8f76404c21ccbe3bd422325540425b
Reviewed-on: https://go-review.googlesource.com/c/go/+/543715
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/tracestack.go