]> Cypherpunks repositories - gostls13.git/commit
runtime: don't track stack separately in gentraceback
authorAustin Clements <austin@google.com>
Tue, 12 Jul 2022 20:42:06 +0000 (16:42 -0400)
committerAustin Clements <austin@google.com>
Fri, 10 Mar 2023 17:18:22 +0000 (17:18 +0000)
commit4f132b7ef862d83390feb074be3e04109e43adaa
treea0cbaac86091ea06f5ae17639faea11214c208a5
parent2d93805171275a4199bf74fe0e47671fb2f9aea4
runtime: don't track stack separately in gentraceback

Currently, gentraceback keeps a copy of the stack bounds of the stack
it's walking in the "stack" variable. Now that "gp" always refers to
the G whose stack it's walking, we can simply use gp.stack instead of
keeping a separate copy.

For #54466.

Change-Id: I68256e5dff6212cfcf14eda615487e66a92d4914
Reviewed-on: https://go-review.googlesource.com/c/go/+/458215
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Felix Geisendörfer <felix.geisendoerfer@datadoghq.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/traceback.go