aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/traceback.go
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2018-04-26 14:06:08 -0400
committerCherry Zhang <cherryyz@google.com>2018-04-26 18:57:20 +0000
commit22f4280b9ac4194d48e0426f3b9743158724ae94 (patch)
treec0bba7a7eab190392b6266439cf31cc6df55ae8d /src/runtime/traceback.go
parenta3bafcf8ccb55b130c10cbf45e44ab77823672a1 (diff)
downloadgo-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/traceback.go')
-rw-r--r--src/runtime/traceback.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/traceback.go b/src/runtime/traceback.go
index 0f392a50fd..2fb8aea59d 100644
--- a/src/runtime/traceback.go
+++ b/src/runtime/traceback.go
@@ -761,7 +761,7 @@ func printAncestorTracebackFuncInfo(f funcInfo, pc uintptr) bool {
}
func callers(skip int, pcbuf []uintptr) int {
- sp := getcallersp(unsafe.Pointer(&skip))
+ sp := getcallersp()
pc := getcallerpc()
gp := getg()
var n int