You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dictionary<K,V> has a version field that is incremented by modification and tested by enumerators such that any modification of a dictionary during enumeration causes an exception. This is to flag that the enumeration may not lead to self consistent results.
Calls to TrimExcess() and EnsureCapacity() appear to not increment version even though they could modify the backing storage in such a way that they could break enumeration.
Tests for version increment in TrimExcess and EnsureCapacity (#31007)
Revert "Version increment for TrimExcess and EnsureCapacity (#31007)"
This reverts commit 92d8f19.
Tests for enumeration invalidation in TrimExcess and EnsureCapacity (#31007)
…9-03, preview1-26729-01, respectively (master) (#31450)
* Update CoreClr, CoreFx, CoreSetup to preview1-26729-04, preview1-26729-03, preview1-26729-01, respectively
* Version increment for TrimExcess and EnsureCapacity (#31007)
Tests for version increment in TrimExcess and EnsureCapacity (#31007)
Revert "Version increment for TrimExcess and EnsureCapacity (#31007)"
This reverts commit 92d8f19.
Tests for enumeration invalidation in TrimExcess and EnsureCapacity (#31007)
Dictionary<K,V>
has aversion
field that is incremented by modification and tested by enumerators such that any modification of a dictionary during enumeration causes an exception. This is to flag that the enumeration may not lead to self consistent results.Calls to TrimExcess() and EnsureCapacity() appear to not increment version even though they could modify the backing storage in such a way that they could break enumeration.
They should both have
version++
.dotnet/coreclr#18854
The text was updated successfully, but these errors were encountered: