]> Cypherpunks repositories - gostls13.git/commit
runtime: zero saved frame pointer when reusing goroutine stack on arm64
authorNick Ripley <nick.ripley@datadoghq.com>
Mon, 3 Apr 2023 13:32:05 +0000 (09:32 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 15 Aug 2023 13:58:27 +0000 (13:58 +0000)
commit94d36fbc4acdbcff5d4d7ad3869f285294c4181c
treec6fdb639f95c461959b9a75f528094925dc350cd
parenta274b3003b8d03a0384a5bbbf6bfe459fd2c4787
runtime: zero saved frame pointer when reusing goroutine stack on arm64

When a goroutine stack is reused on arm64, the spot on the stack where
the "caller's" frame pointer goes for the topmost frame should be
explicitly zeroed. Otherwise, the frame pointer check in adjustframe
with debugCheckBP enabled will fail on the topmost frame of a call stack
the first time a reused stack is grown.

Updates #39524, #58432

Change-Id: Ic1210dc005e3ecdbf9cd5d7b98846566e56df8f5
Reviewed-on: https://go-review.googlesource.com/c/go/+/481636
Reviewed-by: Felix Geisendörfer <felix.geisendoerfer@datadoghq.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
src/runtime/proc.go