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/lock_sema.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/lock_sema.go')
-rw-r--r-- | src/runtime/lock_sema.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/lock_sema.go b/src/runtime/lock_sema.go index b41f805cee..4cb0e84db3 100644 --- a/src/runtime/lock_sema.go +++ b/src/runtime/lock_sema.go @@ -277,8 +277,8 @@ func notetsleepg(n *note, ns int64) bool { throw("notetsleepg on g0") } semacreate(gp.m) - entersyscallblock(0) + entersyscallblock() ok := notetsleep_internal(n, ns, nil, 0) - exitsyscall(0) + exitsyscall() return ok } |