]> Cypherpunks repositories - gostls13.git/commit
runtime: Start and stop individual goroutines at gc safepoints
authorRick Hudson <rlh@golang.org>
Wed, 3 Sep 2014 16:06:36 +0000 (12:06 -0400)
committerRick Hudson <rlh@golang.org>
Wed, 3 Sep 2014 16:06:36 +0000 (12:06 -0400)
commit56bd176e1d5f0145936128c0dc1f931cc5a84c0b
tree19819821b463bc0b875143c633cdbdbe80f1f099
parentf44073785a99c2b6656156fe42055f81d29f5e1a
runtime: Start and stop individual goroutines at gc safepoints

Code to bring goroutines to a gc safepoint one at a time,
do some work such as scanning, and restart the
goroutine, and then move on to the next goroutine.
Currently this code does not do much useful work
but this infrastructure will be critical to future
concurrent GC work.

Fixed comments reviewers.

LGTM=rsc
R=golang-codereviews, rsc, dvyukov
CC=golang-codereviews
https://golang.org/cl/131580043
src/pkg/runtime/mgc0.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h
src/pkg/runtime/stack.c