From e2b4e5326a6c68d066b637c6add86723e0cefd3b Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Tue, 10 Oct 2023 00:28:59 +0800 Subject: [PATCH] runtime: fix some comments --- src/runtime/mgc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index 44ff5fb08b2..0c840473588 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -690,7 +690,7 @@ func gcStart(trigger gcTrigger) { finishsweep_m() }) - // clearpools before we start the GC. If we wait they memory will not be + // clearpools before we start the GC. If we wait the memory will not be // reclaimed until the next GC cycle. clearpools() @@ -722,11 +722,11 @@ func gcStart(trigger gcTrigger) { // enabled because they must be enabled before // any non-leaf heap objects are marked. Since // allocations are blocked until assists can - // happen, we want enable assists as early as + // happen, we want to enable assists as early as // possible. setGCPhase(_GCmark) - gcBgMarkPrepare() // Must happen before assist enable. + gcBgMarkPrepare() // Must happen before assists are enabled. gcMarkRootPrepare() // Mark all active tinyalloc blocks. Since we're