diff options
| author | Youlin Feng <fengyoulin@live.com> | 2026-01-17 14:20:22 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-01-21 07:22:46 -0800 |
| commit | 2baa1d17628bb2f09757617382b1e61f1f9f0ddd (patch) | |
| tree | 36835aa27d1807afd8580d6e03527317db2096e2 | |
| parent | a8291eb61402d4549b69803fc8f834ded45b1f6c (diff) | |
| download | go-2baa1d17628bb2f09757617382b1e61f1f9f0ddd.tar.xz | |
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>
| -rw-r--r-- | src/runtime/mheap.go | 6 |
1 files changed, 0 insertions, 6 deletions
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 |
