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/norace_test.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/norace_test.go')
-rw-r--r-- | src/runtime/norace_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/norace_test.go b/src/runtime/norace_test.go index e9b39b2f45..e90128bb6d 100644 --- a/src/runtime/norace_test.go +++ b/src/runtime/norace_test.go @@ -34,12 +34,12 @@ func benchmarkSyscall(b *testing.B, work, excess int) { b.RunParallel(func(pb *testing.PB) { foo := 42 for pb.Next() { - runtime.Entersyscall(0) + runtime.Entersyscall() for i := 0; i < work; i++ { foo *= 2 foo /= 2 } - runtime.Exitsyscall(0) + runtime.Exitsyscall() } _ = foo }) |