• Austin Clements's avatar
    runtime: record channel in sudog · e4a95b63
    Austin Clements authored
    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/20035Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    e4a95b63
select.go 10.2 KB