]> Cypherpunks repositories - gostls13.git/commit
runtime: fix checkmarks to rescan stacks
authorAustin Clements <austin@google.com>
Fri, 5 Jun 2015 21:36:00 +0000 (17:36 -0400)
committerRuss Cox <rsc@golang.org>
Sun, 7 Jun 2015 17:55:12 +0000 (17:55 +0000)
commit6f6403eddf0161deb63dcf8d91e408c81fa7280f
treeec1d273720f4de1cfa39ffa71a3e6503fa8685a6
parent0599913a854d997edf497297f3d01d27f800e6ab
runtime: fix checkmarks to rescan stacks

Currently checkmarks mode fails to rescan stacks because it sees the
leftover state bits indicating that the stacks haven't changed since
the last scan. As a result, it won't detect lost marks caused by
failing to scan stacks correctly during regular garbage collection.

Fix this by marking all stacks dirty before performing the checkmark
phase.

Change-Id: I1f06882bb8b20257120a4b8e7f95bb3ffc263895
Reviewed-on: https://go-review.googlesource.com/10794
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/mgc.go