internal/runtime/maps: map pointer-key variants missing pruneTombstones

Change-Id: Ide80722515333848a1600382ddf3cfc1b817fe6d
GitHub-Last-Rev: 3f7c3f1365
GitHub-Pull-Request: golang/go#78685
Reviewed-on: https://go-review.googlesource.com/c/go/+/766361
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Weixie Cui 2026-04-13 14:37:40 +00:00 committed by Gopher Robot
parent a91e9fa1de
commit 03dc8c482f

View file

@ -428,6 +428,10 @@ outer:
t.growthLeft++ // will be decremented below to become a no-op.
}
if t.growthLeft == 0 {
t.pruneTombstones(typ, m)
}
// If there is room left to grow, just insert the new entry.
if t.growthLeft > 0 {
slotKey := g.key(typ, i)