]> Cypherpunks repositories - gostls13.git/commit
runtime: shade stack-to-stack copy when starting a goroutine
authorAustin Clements <austin@google.com>
Thu, 13 Oct 2016 19:34:56 +0000 (15:34 -0400)
committerAustin Clements <austin@google.com>
Fri, 28 Oct 2016 20:05:18 +0000 (20:05 +0000)
commitee785f03a24e0373be4c2d7256413296735c3414
tree3562249f1ba1a3d710aef20580d3b9846ee78ad4
parent0c0960a2349d00369f7e1781ec3d8b04d96a5b80
runtime: shade stack-to-stack copy when starting a goroutine

The hybrid barrier requires barriers on stack-to-stack copies if
either stack is grey. There are only two instances of this in the
runtime: channel sends and starting a goroutine. Channel sends already
use typedmemmove and hence have the necessary barriers. This commits
adds barriers for the stack-to-stack copy when starting a goroutine.

Updates #17503.

Change-Id: Ibb55e08127ca4d021ac54be61cb96732efa5df5b
Reviewed-on: https://go-review.googlesource.com/31455
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/proc.go