aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/exec_bsd.go
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2017-03-18 15:55:41 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2017-03-21 17:10:16 +0000
commit2e29eb57dbd2bc7b022fadc33943b0a5ee69324d (patch)
treec66b0c85660bf1426ee7561211bcacb0b361e5b6 /src/syscall/exec_bsd.go
parentc65ceff125ded084c6f3b47f830050339e7cc74e (diff)
downloadgo-2e29eb57dbd2bc7b022fadc33943b0a5ee69324d.tar.xz
runtime: remove unused *chantype parameters
The chanrecv funcs don't use it at all. The chansend ones do, but the element type is now part of the hchan struct, which is already a parameter. hchan can be nil in chansend when sending to a nil channel, so when instrumenting we must copy to the stack to be able to read the channel type. name old time/op new time/op delta ChanUncontended 6.42µs ± 1% 6.22µs ± 0% -3.06% (p=0.000 n=19+18) Initially found by github.com/mvdan/unparam. Fixes #19591. Change-Id: I3a5e8a0082e8445cc3f0074695e3593fd9c88412 Reviewed-on: https://go-review.googlesource.com/38351 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/syscall/exec_bsd.go')
0 files changed, 0 insertions, 0 deletions