mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: fix typos in comments
Change-Id: Ia70e8bdc6d2cf1195d7a3b5d33f180ae2db73e29 Reviewed-on: https://go-review.googlesource.com/c/go/+/305369 Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> Reviewed-by: Ben Shi <powerman1st@163.com> Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
33945869c1
commit
bb2fc21c3b
1 changed files with 2 additions and 2 deletions
|
|
@ -933,7 +933,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
|
||||||
}
|
}
|
||||||
|
|
||||||
if inittrace.active && inittrace.id == getg().goid {
|
if inittrace.active && inittrace.id == getg().goid {
|
||||||
// Init functions are executed sequentially in a single Go routine.
|
// Init functions are executed sequentially in a single goroutine.
|
||||||
inittrace.allocs += 1
|
inittrace.allocs += 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1137,7 +1137,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
|
||||||
}
|
}
|
||||||
|
|
||||||
if inittrace.active && inittrace.id == getg().goid {
|
if inittrace.active && inittrace.id == getg().goid {
|
||||||
// Init functions are executed sequentially in a single Go routine.
|
// Init functions are executed sequentially in a single goroutine.
|
||||||
inittrace.bytes += uint64(size)
|
inittrace.bytes += uint64(size)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue