aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/mgc.go2
-rw-r--r--src/runtime/proc.go2
-rw-r--r--src/runtime/stack.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go
index 9dfee5a4dc..2c6af43da5 100644
--- a/src/runtime/mgc.go
+++ b/src/runtime/mgc.go
@@ -884,7 +884,7 @@ const gcGoalUtilization = 0.30
// mutator latency.
const gcBackgroundUtilization = 0.25
-// gcCreditSlack is the amount of scan work credit that can can
+// gcCreditSlack is the amount of scan work credit that can
// accumulate locally before updating gcController.scanWork and,
// optionally, gcController.bgScanCredit. Lower values give a more
// accurate assist ratio and make it more likely that assists will
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index acfdc8472e..f536b82aab 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -1878,7 +1878,7 @@ func startTemplateThread() {
// templateThread is a thread in a known-good state that exists solely
// to start new threads in known-good states when the calling thread
-// may not be a a good state.
+// may not be in a good state.
//
// Many programs never need this, so templateThread is started lazily
// when we first enter a state that might lead to running on a thread
diff --git a/src/runtime/stack.go b/src/runtime/stack.go
index b815aa859e..65aa7dbd59 100644
--- a/src/runtime/stack.go
+++ b/src/runtime/stack.go
@@ -1279,7 +1279,7 @@ func getStackMap(frame *stkframe, cache *pcvalueCache, debug bool) (locals, args
p = add(p, sys.PtrSize)
*(*slice)(unsafe.Pointer(&objs)) = slice{array: noescape(p), len: int(n), cap: int(n)}
// Note: the noescape above is needed to keep
- // getStackMap from from "leaking param content:
+ // getStackMap from "leaking param content:
// frame". That leak propagates up to getgcmask, then
// GCMask, then verifyGCInfo, which converts the stack
// gcinfo tests into heap gcinfo tests :(