mirror of
https://github.com/golang/go
synced 2024-11-26 20:11:26 -07:00
runtime: docfix countAlloc
fix typo in `countAlloc` doc
This commit is contained in:
parent
3e67f46d4f
commit
6080d3c03b
@ -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