1
0
mirror of https://github.com/golang/go synced 2024-11-23 02:20:03 -07:00

runtime: document that GC blocks the whole program

No code changes. Just make it clear that runtime.GC is not concurrent.

Change-Id: I00a99ebd26402817c665c9a128978cef19f037be
Reviewed-on: https://go-review.googlesource.com/12345
Reviewed-by: Dave Cheney <dave@cheney.net>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Rob Pike 2015-07-18 07:37:51 +10:00
parent 3549178e55
commit ed9a4c91c2

View File

@ -770,7 +770,7 @@ var work struct {
initialHeapLive uint64
}
// GC runs a garbage collection and blocks until the garbage
// GC runs a garbage collection and blocks the entire program until the
// collection is complete.
func GC() {
startGC(gcForceBlockMode)