]> Cypherpunks repositories - gostls13.git/commit
runtime: clear frame pointer in morestack
authorMichael Pratt <mpratt@google.com>
Fri, 2 May 2025 18:58:42 +0000 (14:58 -0400)
committerGopher Robot <gobot@golang.org>
Fri, 2 May 2025 20:30:27 +0000 (13:30 -0700)
commit93fb2c90740aef00553c9ce6a7cd4578c2469675
tree049f76217223badcbb8523690d9e74b170b48185
parent739fb752e3d546034b96d8cc9f2fded613040c98
runtime: clear frame pointer in morestack

Corollary to CL 669615.

morestack uses the frame pointer from g0.sched.bp. This doesn't really
make any sense. morestack wasn't called by whatever used g0 last, so at
best unwinding will get misleading results.

For #63630.

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-linux-arm64-longtest
Change-Id: I6a6a636c3a2994eb88f890c506c96fd899e993a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/669616
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Nick Ripley <nick.ripley@datadoghq.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/asm_amd64.s
src/runtime/asm_arm64.s