]> Cypherpunks repositories - gostls13.git/commit
runtime: put g.waiting list in lock order
authorAustin Clements <austin@google.com>
Tue, 16 Feb 2016 16:06:00 +0000 (11:06 -0500)
committerAustin Clements <austin@google.com>
Wed, 16 Mar 2016 20:13:07 +0000 (20:13 +0000)
commit005140a77e535fa614fbdaa3c6c5d4c7f69f7a91
tree871463bee1ccf01170984f0a20b11137b251834f
parent26594c3dfd67f1fccb328c02de680bfea7eef013
runtime: put g.waiting list in lock order

Currently the g.waiting list created by a select is in poll order.
However, nothing depends on this, and we're going to need access to
the channel lock order in other places shortly, so modify select to
put the waiting list in channel lock order.

For #12967.

Change-Id: If0d38816216ecbb37a36624d9b25dd96e0a775ec
Reviewed-on: https://go-review.googlesource.com/20037
Reviewed-by: Rick Hudson <rlh@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
src/runtime/runtime2.go
src/runtime/select.go