From 6f6c6c5782a0e4e7448d10a98b417e8479a780ee Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Tue, 1 Jul 2025 15:00:13 -0700 Subject: cmd/internal/obj: rip out argp adjustment for wrapper frames The previous CL made this adjustment unnecessary. The argp field is no longer used by the runtime. Change-Id: I3491eeef4103c6653ec345d604c0acd290af9e8f Reviewed-on: https://go-review.googlesource.com/c/go/+/685356 Reviewed-by: Michael Knyszek LUCI-TryBot-Result: Go LUCI Reviewed-by: Cherry Mui Reviewed-by: Cuong Manh Le --- src/runtime/runtime2.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/runtime/runtime2.go') diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index ad8a88e4ff..ee07c1ed93 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -1000,14 +1000,13 @@ type _defer struct { // // A _panic value must only ever live on the stack. // -// The argp and link fields are stack pointers, but don't need special +// The gopanicFP and link fields are stack pointers, but don't need special // handling during stack growth: because they are pointer-typed and // _panic values only live on the stack, regular stack pointer // adjustment takes care of them. type _panic struct { - argp unsafe.Pointer // pointer to arguments of deferred call run during panic; cannot move - known to liblink - arg any // argument to panic - link *_panic // link to earlier panic + arg any // argument to panic + link *_panic // link to earlier panic // startPC and startSP track where _panic.start was called. startPC uintptr -- cgit v1.3-6-g1900