diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index db5b2dcd36..5b5891a579 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -693,7 +693,8 @@ var work struct { initialHeapLive uint64 } -// GC runs a garbage collection. +// GC runs a garbage collection and blocks until the garbage +// collection is complete. func GC() { startGC(gcForceBlockMode) }