]> Cypherpunks repositories - gostls13.git/commit
runtime: fix GC bitmap corruption
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 16 Aug 2011 20:53:02 +0000 (16:53 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 16 Aug 2011 20:53:02 +0000 (16:53 -0400)
commita2677cf363f9d17b416795c621c6bd7de5dcd642
tree919b438578afdce8d26a1e9e1fb2b5328761dd75
parent01dd57b3125892e0dc2054436f29cafb38b0a3ef
runtime: fix GC bitmap corruption
The corruption can occur when GOMAXPROCS
is changed from >1 to 1, since GOMAXPROCS=1
does not imply there is only 1 goroutine running,
other goroutines can still be not parked after
the change.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4873050
src/pkg/runtime/mgc0.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h