runtime: clear() on map doesn't correctly clear existing iterators #59411
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
release-blocker
Milestone
This program shouldn't print anything:
It does (at tip).
For maps whose keys have NaNs in them, iterators that are in progress can't tell that some entries have been deleted by the
clear
builtin. This is because where those NaNs should move to in the larger bucket array isn't computable. Preclear
bultin, this didn't matter because the NaN entries couldn't be deleted.@cuonglm
Update #55002, #56351
The text was updated successfully, but these errors were encountered: