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/os_solaris.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/os_solaris.go')
-rw-r--r-- | src/runtime/os_solaris.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/runtime/os_solaris.go b/src/runtime/os_solaris.go index d698e09e7d..703a2e5430 100644 --- a/src/runtime/os_solaris.go +++ b/src/runtime/os_solaris.go @@ -42,7 +42,7 @@ func sysvicall0(fn *libcFunc) uintptr { mp.libcallpc = getcallerpc() // sp must be the last, because once async cpu profiler finds // all three values to be non-zero, it will use them - mp.libcallsp = getcallersp(unsafe.Pointer(&fn)) + mp.libcallsp = getcallersp() } var libcall libcall @@ -69,7 +69,7 @@ func sysvicall1(fn *libcFunc, a1 uintptr) uintptr { mp.libcallpc = getcallerpc() // sp must be the last, because once async cpu profiler finds // all three values to be non-zero, it will use them - mp.libcallsp = getcallersp(unsafe.Pointer(&fn)) + mp.libcallsp = getcallersp() } var libcall libcall @@ -97,7 +97,7 @@ func sysvicall2(fn *libcFunc, a1, a2 uintptr) uintptr { mp.libcallpc = getcallerpc() // sp must be the last, because once async cpu profiler finds // all three values to be non-zero, it will use them - mp.libcallsp = getcallersp(unsafe.Pointer(&fn)) + mp.libcallsp = getcallersp() } var libcall libcall @@ -124,7 +124,7 @@ func sysvicall3(fn *libcFunc, a1, a2, a3 uintptr) uintptr { mp.libcallpc = getcallerpc() // sp must be the last, because once async cpu profiler finds // all three values to be non-zero, it will use them - mp.libcallsp = getcallersp(unsafe.Pointer(&fn)) + mp.libcallsp = getcallersp() } var libcall libcall @@ -151,7 +151,7 @@ func sysvicall4(fn *libcFunc, a1, a2, a3, a4 uintptr) uintptr { mp.libcallpc = getcallerpc() // sp must be the last, because once async cpu profiler finds // all three values to be non-zero, it will use them - mp.libcallsp = getcallersp(unsafe.Pointer(&fn)) + mp.libcallsp = getcallersp() } var libcall libcall @@ -178,7 +178,7 @@ func sysvicall5(fn *libcFunc, a1, a2, a3, a4, a5 uintptr) uintptr { mp.libcallpc = getcallerpc() // sp must be the last, because once async cpu profiler finds // all three values to be non-zero, it will use them - mp.libcallsp = getcallersp(unsafe.Pointer(&fn)) + mp.libcallsp = getcallersp() } var libcall libcall @@ -205,7 +205,7 @@ func sysvicall6(fn *libcFunc, a1, a2, a3, a4, a5, a6 uintptr) uintptr { mp.libcallpc = getcallerpc() // sp must be the last, because once async cpu profiler finds // all three values to be non-zero, it will use them - mp.libcallsp = getcallersp(unsafe.Pointer(&fn)) + mp.libcallsp = getcallersp() } var libcall libcall |