mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.typeparams] runtime: replace funcPC with internal/abi.FuncPCABIInternal
At this point all funcPC references are ABIInternal functions. Replace with the intrinsics. Change-Id: I3ba7e485c83017408749b53f92877d3727a75e27 Reviewed-on: https://go-review.googlesource.com/c/go/+/321954 Trust: Cherry Mui <cherryyz@google.com> Run-TryBot: Cherry Mui <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
6a81e063dd
commit
626e89c261
39 changed files with 111 additions and 99 deletions
|
|
@ -144,7 +144,7 @@ func initsig(preinit bool) {
|
|||
}
|
||||
|
||||
handlingSig[i] = 1
|
||||
setsig(i, funcPC(sighandler))
|
||||
setsig(i, abi.FuncPCABIInternal(sighandler))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -195,7 +195,7 @@ func sigenable(sig uint32) {
|
|||
<-maskUpdatedChan
|
||||
if atomic.Cas(&handlingSig[sig], 0, 1) {
|
||||
atomic.Storeuintptr(&fwdSig[sig], getsig(sig))
|
||||
setsig(sig, funcPC(sighandler))
|
||||
setsig(sig, abi.FuncPCABIInternal(sighandler))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -272,7 +272,7 @@ func setProcessCPUProfiler(hz int32) {
|
|||
// Enable the Go signal handler if not enabled.
|
||||
if atomic.Cas(&handlingSig[_SIGPROF], 0, 1) {
|
||||
atomic.Storeuintptr(&fwdSig[_SIGPROF], getsig(_SIGPROF))
|
||||
setsig(_SIGPROF, funcPC(sighandler))
|
||||
setsig(_SIGPROF, abi.FuncPCABIInternal(sighandler))
|
||||
}
|
||||
|
||||
var it itimerval
|
||||
|
|
@ -844,7 +844,7 @@ func raisebadsignal(sig uint32, c *sigctxt) {
|
|||
// We may receive another instance of the signal before we
|
||||
// restore the Go handler, but that is not so bad: we know
|
||||
// that the Go program has been ignoring the signal.
|
||||
setsig(sig, funcPC(sighandler))
|
||||
setsig(sig, abi.FuncPCABIInternal(sighandler))
|
||||
}
|
||||
|
||||
//go:nosplit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue