]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: docfix countAlloc
authorPeter Feichtinger <shippo@gmx.at>
Fri, 24 Nov 2023 12:15:54 +0000 (12:15 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 29 Nov 2023 17:49:34 +0000 (17:49 +0000)
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 <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>

src/runtime/mbitmap.go

index a0402d2933b2e4332477d431ddc689cca23f01cc..cdd1c5fc3b5b24fcd110f9e876bf7592bee3c42e 100644 (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)