From c418da34cd82e041066259af123e6e36e7c2915f Mon Sep 17 00:00:00 2001 From: Peter Feichtinger Date: Fri, 24 Nov 2023 12:15:54 +0000 Subject: [PATCH] runtime: docfix countAlloc fix typo in `countAlloc` doc Change-Id: I9f0752412b7a7dfae4915870edeab4ac52e38b2d GitHub-Last-Rev: 6080d3c03ba6cacb1874af9724cfeb7cae27b78f GitHub-Pull-Request: golang/go#64357 Reviewed-on: https://go-review.googlesource.com/c/go/+/544755 Reviewed-by: Michael Pratt Reviewed-by: Hiro Hamada Reviewed-by: Michael Knyszek Auto-Submit: Michael Knyszek LUCI-TryBot-Result: Go LUCI --- src/runtime/mbitmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/mbitmap.go b/src/runtime/mbitmap.go index a0402d2933..cdd1c5fc3b 100644 --- a/src/runtime/mbitmap.go +++ b/src/runtime/mbitmap.go @@ -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) -- 2.48.1