From: Youlin Feng Date: Sat, 17 Jan 2026 06:20:22 +0000 (+0800) Subject: runtime: remove the unused scanIdx from mspan X-Git-Tag: go1.26rc3~11^2 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2baa1d17628bb2f09757617382b1e61f1f9f0ddd;p=gostls13.git runtime: remove the unused scanIdx from mspan After CL 700496, mspan.scanIdx is never used, this CL just remove it. Change-Id: I41ce9902957c0cfa6fbf26b66a2a7787b179376a Reviewed-on: https://go-review.googlesource.com/c/go/+/737220 LUCI-TryBot-Result: Go LUCI Reviewed-by: Carlos Amedee Auto-Submit: Carlos Amedee Reviewed-by: Michael Knyszek --- diff --git a/src/runtime/mheap.go b/src/runtime/mheap.go index 68dfca4668..9b62ee4273 100644 --- a/src/runtime/mheap.go +++ b/src/runtime/mheap.go @@ -457,12 +457,6 @@ type mspan struct { // mallocgc, and issue 54596). freeIndexForScan uint16 - // Temporary storage for the object index that caused this span to - // be queued for scanning. - // - // Used only with goexperiment.GreenTeaGC. - scanIdx uint16 - // Cache of the allocBits at freeindex. allocCache is shifted // such that the lowest bit corresponds to the bit freeindex. // allocCache holds the complement of allocBits, thus allowing