1
0
mirror of https://github.com/golang/go synced 2024-11-26 17:56:55 -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:
Peter Feichtinger 2023-11-24 12:15:54 +00:00 committed by Gopher Robot
parent b9a4eaa62b
commit c418da34cd

View File

@ -441,7 +441,7 @@ func typeBitsBulkBarrier(typ *_type, dst, src, size uintptr) {
}
// countAlloc returns the number of objects allocated in span s by
// scanning the allocation bitmap.
// scanning the mark bitmap.
func (s *mspan) countAlloc() int {
count := 0
bytes := divRoundUp(uintptr(s.nelems), 8)