]> Cypherpunks repositories - gostls13.git/commit
runtime: move selectdone into g
authorDaniel Morsing <daniel.morsing@gmail.com>
Wed, 2 Aug 2017 18:01:17 +0000 (19:01 +0100)
committerDaniel Morsing <daniel.morsing@gmail.com>
Tue, 15 Aug 2017 19:18:00 +0000 (19:18 +0000)
commit32b94f13cf35e619a0dae6e1e381adc7e182d283
tree64d58aca0d055ac7ced3b9a611d5ed36e9980d6c
parent89d74f54168619cf1f36b6868626fbb1237c1deb
runtime: move selectdone into g

Writing to selectdone on the stack of another goroutine meant a
pretty subtle dance between the select code and the stack copying
code. Instead move the selectdone variable into the g struct.

Change-Id: Id246aaf18077c625adef7ca2d62794afef1bdd1b
Reviewed-on: https://go-review.googlesource.com/53390
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/chan.go
src/runtime/proc.go
src/runtime/runtime2.go
src/runtime/select.go
src/runtime/stack.go