1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:54:42 -07:00

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.
This commit is contained in:
Jes Cok 2023-09-21 07:22:30 +08:00
parent dd881027c3
commit 3ce3a75a66

View File

@ -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)