Commit ed9a4c91 authored by Rob Pike's avatar Rob Pike

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/12345Reviewed-by: 's avatarDave Cheney <dave@cheney.net>
Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 3549178e
...@@ -770,7 +770,7 @@ var work struct { ...@@ -770,7 +770,7 @@ var work struct {
initialHeapLive uint64 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. // collection is complete.
func GC() { func GC() {
startGC(gcForceBlockMode) startGC(gcForceBlockMode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment