]> Cypherpunks repositories - gostls13.git/commit
runtime: record channel in sudog
authorAustin Clements <austin@google.com>
Mon, 15 Feb 2016 22:37:04 +0000 (17:37 -0500)
committerAustin Clements <austin@google.com>
Wed, 16 Mar 2016 20:13:02 +0000 (20:13 +0000)
commite4a95b63433cc95c81782713b917b2941e48cb39
treec75e4309ada98df7b4a5bd9e2d177983cc417c1f
parentd7cedc4b74f902a3a1b429fb27f85380f6955a6f
runtime: record channel in sudog

Given a G, there's currently no way to find the channel it's blocking
on. We'll need this information to fix a (probably theoretical) bug in
select and to implement concurrent stack shrinking, so record the
channel in the sudog.

For #12967.

Change-Id: If8fb63a140f1d07175818824d08c0ebeec2bdf66
Reviewed-on: https://go-review.googlesource.com/20035
Reviewed-by: Rick Hudson <rlh@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/select.go
src/runtime/chan.go
src/runtime/proc.go
src/runtime/runtime2.go
src/runtime/select.go