From 3bf1eecbd30f48851c35f608aa265c978b2cf301 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Sat, 14 Jun 2025 19:37:47 +0800 Subject: [PATCH] runtime: fix struct comment Change-Id: I0c33830b13c8a187ac82504c7653abb8f8cf7530 Reviewed-on: https://go-review.googlesource.com/c/go/+/681655 Reviewed-by: Sean Liao Reviewed-by: Junyang Shao Reviewed-by: Michael Knyszek LUCI-TryBot-Result: Go LUCI Auto-Submit: Sean Liao --- src/runtime/mheap.go | 6 ++++-- 1 file 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 -- 2.50.0