]> Cypherpunks repositories - gostls13.git/commit
runtime: scanvalid race Fixes #9727
authorRick Hudson <rlh@golang.org>
Thu, 29 Jan 2015 15:37:32 +0000 (10:37 -0500)
committerRick Hudson <rlh@golang.org>
Thu, 29 Jan 2015 19:00:32 +0000 (19:00 +0000)
commit27aed3ce6898f3078f4ee52935c63a12aca86b9e
tree161e90f5868af869cd37da93812cd936f23c4805
parent428afae027548e079335d25cacb70082a0ef8d9f
runtime: scanvalid race Fixes #9727

Set gcscanvalid=false after you have cased to _Grunning.
If you do it before the cas and the atomicstatus races to a scan state,
the scan will set gcscanvalid=true and we will be _Grunning
with gcscanvalid==true which is not a good thing.

Change-Id: Ie53ea744a5600392b47da91159d985fe6fe75961
Reviewed-on: https://go-review.googlesource.com/3510
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/proc1.go