• Daniel Martí's avatar
    runtime: remove unused *chantype parameters · 2e29eb57
    Daniel Martí authored
    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: 's avatarMatthew Dempsky <mdempsky@google.com>
    2e29eb57
Name
Last commit
Last update
..
amd64 Loading commit data...
arm Loading commit data...
arm64 Loading commit data...
gc Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc64 Loading commit data...
s390x Loading commit data...
ssa Loading commit data...
syntax Loading commit data...
test Loading commit data...
x86 Loading commit data...