mirror of
https://github.com/golang/go.git
synced 2026-06-27 19:30:52 +00:00
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:
parent
a91e9fa1de
commit
03dc8c482f
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue