mirror of
https://github.com/golang/go
synced 2024-11-26 20:51:23 -07:00
runtime: docfix countAlloc
fix typo in `countAlloc` doc
Change-Id: I9f0752412b7a7dfae4915870edeab4ac52e38b2d
GitHub-Last-Rev: 6080d3c03b
GitHub-Pull-Request: golang/go#64357
Reviewed-on: https://go-review.googlesource.com/c/go/+/544755
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Hiro Hamada <laciferin@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
b9a4eaa62b
commit
c418da34cd
@ -441,7 +441,7 @@ func typeBitsBulkBarrier(typ *_type, dst, src, size uintptr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// countAlloc returns the number of objects allocated in span s by
|
// countAlloc returns the number of objects allocated in span s by
|
||||||
// scanning the allocation bitmap.
|
// scanning the mark bitmap.
|
||||||
func (s *mspan) countAlloc() int {
|
func (s *mspan) countAlloc() int {
|
||||||
count := 0
|
count := 0
|
||||||
bytes := divRoundUp(uintptr(s.nelems), 8)
|
bytes := divRoundUp(uintptr(s.nelems), 8)
|
||||||
|
Loading…
Reference in New Issue
Block a user