aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcuishuang <imcusg@gmail.com>2025-06-14 19:37:47 +0800
committerGopher Robot <gobot@golang.org>2025-06-20 11:28:03 -0700
commit3bf1eecbd30f48851c35f608aa265c978b2cf301 (patch)
tree333d0c71c1ac6a02554577855b304f380195384c
parent8ed23a2936dc5f3cf070c52043dcc0e92563e62b (diff)
downloadgo-3bf1eecbd30f48851c35f608aa265c978b2cf301.tar.xz
runtime: fix struct comment
Change-Id: I0c33830b13c8a187ac82504c7653abb8f8cf7530 Reviewed-on: https://go-review.googlesource.com/c/go/+/681655 Reviewed-by: Sean Liao <sean@liao.dev> Reviewed-by: Junyang Shao <shaojunyang@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Sean Liao <sean@liao.dev>
-rw-r--r--src/runtime/mheap.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/runtime/mheap.go b/src/runtime/mheap.go
index 3965d6eb52..f25dbb429d 100644
--- a/src/runtime/mheap.go
+++ b/src/runtime/mheap.go
@@ -312,8 +312,10 @@ type heapArena struct {
// during marking.
pageSpecials [pagesPerArena / 8]uint8
- // pageUseSpanDartboard is a bitmap that indicates which spans are
- // heap spans and also gcUsesSpanDartboard.
+ // pageUseSpanInlineMarkBits is a bitmap where each bit corresponds
+ // to a span, as only spans one page in size can have inline mark bits.
+ // The bit indicates that the span has a spanInlineMarkBits struct
+ // stored directly at the top end of the span's memory.
pageUseSpanInlineMarkBits [pagesPerArena / 8]uint8
// checkmarks stores the debug.gccheckmark state. It is only