diff options
author | Cherry Zhang <cherryyz@google.com> | 2018-04-26 14:06:08 -0400 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2018-04-26 18:57:20 +0000 |
commit | 22f4280b9ac4194d48e0426f3b9743158724ae94 (patch) | |
tree | c0bba7a7eab190392b6266439cf31cc6df55ae8d /src/runtime/signal_unix.go | |
parent | a3bafcf8ccb55b130c10cbf45e44ab77823672a1 (diff) | |
download | go-22f4280b9ac4194d48e0426f3b9743158724ae94.tar.gz go-22f4280b9ac4194d48e0426f3b9743158724ae94.zip |
runtime: remove the dummy arg of getcallersp
getcallersp is intrinsified, and so the dummy arg is no longer
needed. Remove it, as well as a few dummy args that are solely
to feed getcallersp.
Change-Id: Ibb6c948ff9c56537042b380ac3be3a91b247aaa6
Reviewed-on: https://go-review.googlesource.com/109596
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/signal_unix.go')
-rw-r--r-- | src/runtime/signal_unix.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/signal_unix.go b/src/runtime/signal_unix.go index 0d8caae7a0..4981c1f615 100644 --- a/src/runtime/signal_unix.go +++ b/src/runtime/signal_unix.go @@ -316,7 +316,7 @@ func sigtrampgo(sig uint32, info *siginfo, ctx unsafe.Pointer) { st := stackt{ss_size: g.m.g0.stack.hi - g.m.g0.stack.lo} setSignalstackSP(&st, g.m.g0.stack.lo) setGsignalStack(&st, &gsignalStack) - g.m.gsignal.stktopsp = getcallersp(unsafe.Pointer(&sig)) + g.m.gsignal.stktopsp = getcallersp() setStack = true } else { var st stackt @@ -335,7 +335,7 @@ func sigtrampgo(sig uint32, info *siginfo, ctx unsafe.Pointer) { dropm() } setGsignalStack(&st, &gsignalStack) - g.m.gsignal.stktopsp = getcallersp(unsafe.Pointer(&sig)) + g.m.gsignal.stktopsp = getcallersp() setStack = true } } |