Change information
Commit message:
runtime, cmd/link: tighten search for stackObjectRecord
A stackObjectRecord should always be in funcdata, between gofunc
and the end of pclntab, except for the special case of
methodValueCallFrameObjs, which should always be in noptrbss.
Adjust the two loops that look for the moduledata corresponding
to a stackObjectRecord to search more precisely, rather than
relying on datap.end.
Closely based on a patch by Michael Stapelberg.
For #76038
Change-Id: I751801d8fd030af751825a67905b2a343280e7d9
Files:
- M src/cmd/link/internal/ld/symtab.go
- M src/runtime/stack.go
- M src/runtime/stkframe.go
- M src/runtime/symtab.go
Change size: S
Delta: 4 files changed, 10 insertions(+), 2 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +1 by David Chase, +2 by Cherry Mui
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI