From aa8e4c5e610145af682d48b064fa0d28ed9a91e4 Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Mon, 9 Oct 2023 16:41:24 +0000 Subject: [PATCH] runtime: fix some comments Change-Id: I06403cf217a4d2645e13115e7ca358b7f3d3f2ef GitHub-Last-Rev: e2b4e5326a6c68d066b637c6add86723e0cefd3b GitHub-Pull-Request: golang/go#63474 Reviewed-on: https://go-review.googlesource.com/c/go/+/533875 LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor --- 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 44ff5fb08b..0c84047358 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 -- 2.50.0