]> Cypherpunks repositories - gostls13.git/commit
runtime: avoid large object stack copy in traceStackTable.dump
authorAustin Clements <austin@google.com>
Thu, 11 Aug 2022 15:56:11 +0000 (11:56 -0400)
committerAustin Clements <austin@google.com>
Thu, 11 Aug 2022 20:16:31 +0000 (20:16 +0000)
commit0293a1f308b805035e50c9c40af29f72389e4b73
tree03ac06aaa7076fd28c88a2d335590c430e8823d1
parentd4a34665192b7cdfac6b51978c15053ff2ec1bd9
runtime: avoid large object stack copy in traceStackTable.dump

Following up on the previous CL, this CL removes a unnecessary stack
copy of a large object in a range loop. This drops another 64 KiB from
(*traceStackTable).dump's stack frame so it is now roughly 80 bytes
depending on architecture, which will easily fit on the system stack.

For #53979.

Change-Id: I16f642f6f1982d0ed0a62371bf2e19379e5870eb
Reviewed-on: https://go-review.googlesource.com/c/go/+/422955
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
src/runtime/trace.go