Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2018-09-18 08:41:25 +0300
committerGitHub <noreply@github.com>2018-09-18 08:41:25 +0300
commit267410d0ab65fabc61d6cd3e0e1c2ebed43ea661 (patch)
tree53ad81bdef6119d62e17010e44716242a0201026
parent945dda39743c982e2f98e5df16ae62c27895d42a (diff)
parent24371c39abf0fb89adb56b64529da545c3b898ec (diff)
Merge pull request #6342 from dotnet/nmirror
Merge nmirror to master
-rw-r--r--src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs b/src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
index bc3040771..47105651d 100644
--- a/src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
+++ b/src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs
@@ -267,7 +267,6 @@ namespace System.Collections.Generic
_freeCount = 0;
Array.Clear(_entries, 0, count);
}
- _version++;
}
public bool ContainsKey(TKey key)
@@ -476,7 +475,6 @@ namespace System.Collections.Generic
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key);
}
- _version++;
if (_buckets == null)
{
Initialize(0);
@@ -511,6 +509,7 @@ namespace System.Collections.Generic
if (behavior == InsertionBehavior.OverwriteExisting)
{
entries[i].value = value;
+ _version++;
return true;
}
@@ -552,6 +551,7 @@ namespace System.Collections.Generic
if (behavior == InsertionBehavior.OverwriteExisting)
{
entries[i].value = value;
+ _version++;
return true;
}
@@ -590,6 +590,7 @@ namespace System.Collections.Generic
if (behavior == InsertionBehavior.OverwriteExisting)
{
entries[i].value = value;
+ _version++;
return true;
}
@@ -647,6 +648,7 @@ namespace System.Collections.Generic
entry.value = value;
// Value in _buckets is 1-based
bucket = index + 1;
+ _version++;
// Value types never rehash
if (default(TKey) == null && collisionCount > HashHelpers.HashCollisionThreshold && comparer is NonRandomizedStringEqualityComparer)