]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix some comments
authorJes Cok <xigua67damn@gmail.com>
Mon, 9 Oct 2023 16:41:24 +0000 (16:41 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 10 Oct 2023 00:34:58 +0000 (00:34 +0000)
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/runtime/mgc.go

index 44ff5fb08b2d854299dc7099f9b30d090637c813..0c840473588232bb955798a58e97fe02facbb72d 100644 (file)
@@ -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