mirror of
https://github.com/golang/go
synced 2024-11-23 00:00:07 -07:00
runtime: fix some typos
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>
This commit is contained in:
parent
ba6bd967d2
commit
d10241fcf6
@ -5316,7 +5316,7 @@ func preemptall() bool {
|
|||||||
|
|
||||||
// Tell the goroutine running on processor P to stop.
|
// Tell the goroutine running on processor P to stop.
|
||||||
// This function is purely best-effort. It can incorrectly fail to inform the
|
// 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
|
// correct goroutine, that goroutine might ignore the request if it is
|
||||||
// simultaneously executing newstack.
|
// simultaneously executing newstack.
|
||||||
// No lock needs to be held.
|
// No lock needs to be held.
|
||||||
@ -5336,7 +5336,7 @@ func preemptone(_p_ *p) bool {
|
|||||||
|
|
||||||
gp.preempt = true
|
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.
|
// comparing the current stack pointer to gp->stackguard0.
|
||||||
// Setting gp->stackguard0 to StackPreempt folds
|
// Setting gp->stackguard0 to StackPreempt folds
|
||||||
// preemption into the normal stack overflow check.
|
// preemption into the normal stack overflow check.
|
||||||
@ -6186,7 +6186,7 @@ var inittrace tracestat
|
|||||||
|
|
||||||
type tracestat struct {
|
type tracestat struct {
|
||||||
active bool // init tracing activation status
|
active bool // init tracing activation status
|
||||||
id int64 // init go routine id
|
id int64 // init goroutine id
|
||||||
allocs uint64 // heap allocations
|
allocs uint64 // heap allocations
|
||||||
bytes uint64 // heap allocated bytes
|
bytes uint64 // heap allocated bytes
|
||||||
}
|
}
|
||||||
@ -6218,7 +6218,7 @@ func doInit(t *initTask) {
|
|||||||
|
|
||||||
if inittrace.active {
|
if inittrace.active {
|
||||||
start = nanotime()
|
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
|
before = inittrace
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user