]> Cypherpunks repositories - gostls13.git/commit
runtime: add memory barrier for sync send in select
authorRuss Cox <rsc@golang.org>
Sat, 11 Jul 2015 15:53:58 +0000 (11:53 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 13 Jul 2015 19:10:22 +0000 (19:10 +0000)
commit8c3533c89bae3493df8a0aad23e56c84f8d25714
treefbb1bb3e3bfc4202e28b9bb39a5c7e2ae177ddf0
parent242ec168c1394038cee17935f92e28fc24baac8e
runtime: add memory barrier for sync send in select

Missed select case when adding the barrier last time.
All the more reason to refactor this code in Go 1.6.

Fixes #11643.

Change-Id: Ib0d19d6e0939296c0a3e06dda5e9b76f813bbc7e
Reviewed-on: https://go-review.googlesource.com/12086
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/chan.go
src/runtime/chanbarrier_test.go [new file with mode: 0644]
src/runtime/select.go