diff --git a/src/internal/runtime/maps/runtime_fast32.go b/src/internal/runtime/maps/runtime_fast32.go index c756314897..615c739423 100644 --- a/src/internal/runtime/maps/runtime_fast32.go +++ b/src/internal/runtime/maps/runtime_fast32.go @@ -397,6 +397,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)