aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/mgc.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go
index 068372439f..e0818d6441 100644
--- a/src/runtime/mgc.go
+++ b/src/runtime/mgc.go
@@ -770,8 +770,9 @@ var work struct {
initialHeapLive uint64
}
-// GC runs a garbage collection. It might block the entire program until the
-// collection is complete.
+// GC runs a garbage collection and blocks the caller until the
+// garbage collection is complete. It may also block the entire
+// program.
func GC() {
startGC(gcForceBlockMode)
}