runtime: tweak outdated comment in cgocallback for amd64

A comment references GOEXPERIMENT=framepointer, but frame pointers have
been unconditionally enabled on amd64 for a while.

Change-Id: Id66f2de7a32d14c145608568dc765b416a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/771040
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
Nick Ripley 2026-04-27 09:48:58 -04:00
parent efa1eecc7d
commit 1d23a4caa1

View file

@ -1114,8 +1114,8 @@ havem:
MOVQ fn+0(FP), AX
MOVQ frame+8(FP), BX
MOVQ ctxt+16(FP), CX
// Compute the size of the frame, including return PC and, if
// GOEXPERIMENT=framepointer, the saved base pointer
// Compute the size of the frame, including the return PC and
// saved frame pointer
LEAQ fn+0(FP), R8
SUBQ SP, R8 // R8 is our actual frame size
SUBQ R8, DI // Allocate the same frame size on the g stack