diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index db5b2dcd363626166b5e76e66c1bd327e3fbc02a..5b5891a5796ade8f900abaf26d1230ab9662f173 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) }