]> Cypherpunks repositories - gostls13.git/commit
runtime: join selectgo and selectgoImpl
authorAustin Clements <austin@google.com>
Tue, 7 Mar 2017 20:36:49 +0000 (15:36 -0500)
committerAustin Clements <austin@google.com>
Tue, 7 Mar 2017 21:19:38 +0000 (21:19 +0000)
commitd50f892abca46b794a23f20777c0b2425467d407
tree24860cb18fb48f360612905ca4a76a2139b29d67
parent5e4a958351222233fbc6f82ab621a7d15299eea5
runtime: join selectgo and selectgoImpl

Currently selectgo is just a wrapper around selectgoImpl. This keeps
the hard-coded frame skip counts for tracing the same between the
channel implementation and the select implementation.

However, this is fragile and confusing, so pass a skip parameter to
send and recv, join selectgo and selectgoImpl into one function, and
use decrease all of the skips in selectgo by one.

Change-Id: I11b8cbb7d805b55f5dc6ab4875ac7dde79412ff2
Reviewed-on: https://go-review.googlesource.com/37860
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/runtime/chan.go
src/runtime/select.go