]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix some typos
authorqcrao <qcrao91@gmail.com>
Sun, 28 Mar 2021 12:17:35 +0000 (12:17 +0000)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Mon, 29 Mar 2021 06:21:31 +0000 (06:21 +0000)
Change-Id: I18b9508904f19d5aa68355c937c30b5fdf35442c
Reviewed-on: https://go-review.googlesource.com/c/go/+/305249
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>

src/runtime/proc.go

index 35996b99d79309c2277ccc2f61f22ef1c044da7c..89d36321a6422ac6247ec48ce0c4dcc92f5f0c01 100644 (file)
@@ -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
                }