From 3ce3a75a66557d1a8ff089fd532ac694bfa0104f Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Thu, 21 Sep 2023 07:22:30 +0800 Subject: [PATCH] runtime: no need to convert 'c.fault()' to uintptr in sighandler After CL 528817, *sigctxt.fault of all arches return uintptr, so there is no need to convert 'c.fault()' to uintptr anymore. --- src/runtime/signal_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/signal_unix.go b/src/runtime/signal_unix.go index 1423923e06..cd9fd5d796 100644 --- a/src/runtime/signal_unix.go +++ b/src/runtime/signal_unix.go @@ -698,7 +698,7 @@ func sighandler(sig uint32, info *siginfo, ctxt unsafe.Pointer, gp *g) { // the unwinding code. gp.sig = sig gp.sigcode0 = uintptr(c.sigcode()) - gp.sigcode1 = uintptr(c.fault()) + gp.sigcode1 = c.fault() gp.sigpc = c.sigpc() c.preparePanic(sig, gp)