Skip to content

Commit 3bf1eec

Browse files
cuishuanggopherbot
authored andcommitted
runtime: fix struct comment
Change-Id: I0c33830b13c8a187ac82504c7653abb8f8cf7530 Reviewed-on: https://go-review.googlesource.com/c/go/+/681655 Reviewed-by: Sean Liao <[email protected]> Reviewed-by: Junyang Shao <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Sean Liao <[email protected]>
1 parent 8ed23a2 commit 3bf1eec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/runtime/mheap.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,10 @@ type heapArena struct {
312312
// during marking.
313313
pageSpecials [pagesPerArena / 8]uint8
314314

315-
// pageUseSpanDartboard is a bitmap that indicates which spans are
316-
// heap spans and also gcUsesSpanDartboard.
315+
// pageUseSpanInlineMarkBits is a bitmap where each bit corresponds
316+
// to a span, as only spans one page in size can have inline mark bits.
317+
// The bit indicates that the span has a spanInlineMarkBits struct
318+
// stored directly at the top end of the span's memory.
317319
pageUseSpanInlineMarkBits [pagesPerArena / 8]uint8
318320

319321
// checkmarks stores the debug.gccheckmark state. It is only

0 commit comments

Comments
 (0)