{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/31007","repository_url":"https://api.github.com/repos/dotnet/corefx","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/31007/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/31007/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/31007/events","html_url":"https://github.com/dotnet/corefx/issues/31007","id":340443539,"node_id":"MDU6SXNzdWUzNDA0NDM1Mzk=","number":31007,"title":"Dictionary version increment is missing for TrimExcess() and EnsureCapacity()","user":{"login":"danmosemsft","id":6385855,"node_id":"MDQ6VXNlcjYzODU4NTU=","avatar_url":"https://avatars3.githubusercontent.com/u/6385855?v=4","gravatar_id":"","url":"https://api.github.com/users/danmosemsft","html_url":"https://github.com/danmosemsft","followers_url":"https://api.github.com/users/danmosemsft/followers","following_url":"https://api.github.com/users/danmosemsft/following{/other_user}","gists_url":"https://api.github.com/users/danmosemsft/gists{/gist_id}","starred_url":"https://api.github.com/users/danmosemsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmosemsft/subscriptions","organizations_url":"https://api.github.com/users/danmosemsft/orgs","repos_url":"https://api.github.com/users/danmosemsft/repos","events_url":"https://api.github.com/users/danmosemsft/events{/privacy}","received_events_url":"https://api.github.com/users/danmosemsft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-11T23:50:10Z","updated_at":"2018-07-11T23:50:10Z","closed_at":null,"author_association":"MEMBER","body":"`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.\r\n\r\nCalls 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.\r\n\r\nThey should both have `version++`. \r\n\r\nhttps://github.com/dotnet/coreclr/pull/18854"}}
{"actor":{"display_login":"danmosemsft"}}