aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-11-18 13:51:35 +0800
committerGopher Robot <gobot@golang.org>2023-11-27 15:48:25 +0000
commit0d018b49e33b1383dc0ae5cc968e800dffeeaf7d (patch)
tree554814c7ccb8a3a8be801e10f6a63827c22f182a /src/runtime
parent0c7e5d3b8db6668d6bdb16410d59c0ae4133400a (diff)
downloadgo-0d018b49e33b1383dc0ae5cc968e800dffeeaf7d.tar.xz
all: fix field names
Change-Id: I3ad7a50707486ebdbbd676b3581df6e3ed0fd3a1 Reviewed-on: https://go-review.googlesource.com/c/go/+/543476 Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: shuang cui <imcusg@gmail.com>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/mgcscavenge.go2
-rw-r--r--src/runtime/runtime2.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/mgcscavenge.go b/src/runtime/mgcscavenge.go
index e6725b4622..86c2103f18 100644
--- a/src/runtime/mgcscavenge.go
+++ b/src/runtime/mgcscavenge.go
@@ -307,7 +307,7 @@ type scavengerState struct {
// See sleepRatio for more details.
sleepController piController
- // cooldown is the time left in nanoseconds during which we avoid
+ // controllerCooldown is the time left in nanoseconds during which we avoid
// using the controller and we hold sleepRatio at a conservative
// value. Used if the controller's assumptions fail to hold.
controllerCooldown int64
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go
index 6d40c7c466..01f1a50670 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -857,7 +857,7 @@ type schedt struct {
sysmonwait atomic.Bool
sysmonnote note
- // safepointFn should be called on each P at the next GC
+ // safePointFn should be called on each P at the next GC
// safepoint if p.runSafePointFn is set.
safePointFn func(*p)
safePointWait int32