]> Cypherpunks repositories - gostls13.git/commit
runtime: remove the pc field of _defer struct
authorYoulin Feng <fengyoulin@live.com>
Fri, 31 Oct 2025 02:45:26 +0000 (10:45 +0800)
committerKeith Randall <khr@golang.org>
Mon, 3 Nov 2025 17:26:36 +0000 (09:26 -0800)
commit361d51a6b58bccaab0559e06737c918018a7a5fa
tree8ba94fd5f0642a8e23caa852881c68bd42b74954
parent00ee1860ce877ec9e2e323d7e48dee083e0902bd
runtime: remove the pc field of _defer struct

Since we always can get the address of `CALL runtime.deferreturn(SB)`
from the unwinder, so it is not necessary to record the caller's pc
in the _defer struct. For the stack allocated _defer, this CL makes
the frame smaller.

Change-Id: I0fd347e4bc07cf8a9b954816323df30fc52552b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/716720
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/cmd/compile/internal/ssagen/ssa.go
src/runtime/heapdump.go
src/runtime/panic.go
src/runtime/runtime2.go