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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Carlos Amedee <carlos@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
Youlin Feng
2026-01-17 14:20:22 +08:00
committed by Gopher Robot
parent a8291eb614
commit 2baa1d1762

View File

@@ -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