From d10241fcf63826d51e8d9c914ab0ad2ef9173151 Mon Sep 17 00:00:00 2001 From: qcrao Date: Sun, 28 Mar 2021 12:17:35 +0000 Subject: [PATCH] runtime: fix some typos Change-Id: I18b9508904f19d5aa68355c937c30b5fdf35442c Reviewed-on: https://go-review.googlesource.com/c/go/+/305249 Reviewed-by: Ian Lance Taylor Reviewed-by: Emmanuel Odeke Run-TryBot: Ian Lance Taylor TryBot-Result: Go Bot --- src/runtime/proc.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 35996b99d79..89d36321a64 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -5316,7 +5316,7 @@ func preemptall() bool { // Tell the goroutine running on processor P to stop. // This function is purely best-effort. It can incorrectly fail to inform the -// goroutine. It can send inform the wrong goroutine. Even if it informs the +// goroutine. It can inform the wrong goroutine. Even if it informs the // correct goroutine, that goroutine might ignore the request if it is // simultaneously executing newstack. // No lock needs to be held. @@ -5336,7 +5336,7 @@ func preemptone(_p_ *p) bool { gp.preempt = true - // Every call in a go routine checks for stack overflow by + // Every call in a goroutine checks for stack overflow by // comparing the current stack pointer to gp->stackguard0. // Setting gp->stackguard0 to StackPreempt folds // preemption into the normal stack overflow check. @@ -6186,7 +6186,7 @@ var inittrace tracestat type tracestat struct { active bool // init tracing activation status - id int64 // init go routine id + id int64 // init goroutine id allocs uint64 // heap allocations bytes uint64 // heap allocated bytes } @@ -6218,7 +6218,7 @@ func doInit(t *initTask) { if inittrace.active { start = nanotime() - // Load stats non-atomically since tracinit is updated only by this init go routine. + // Load stats non-atomically since tracinit is updated only by this init goroutine. before = inittrace }