diff --git a/src/System.Collections.Concurrent/src/System/Collections/Concurrent/ConcurrentDictionary.cs b/src/System.Collections.Concurrent/src/System/Collections/Concurrent/ConcurrentDictionary.cs index 212d5f44196c..a600daf14512 100644 --- a/src/System.Collections.Concurrent/src/System/Collections/Concurrent/ConcurrentDictionary.cs +++ b/src/System.Collections.Concurrent/src/System/Collections/Concurrent/ConcurrentDictionary.cs @@ -1033,7 +1033,7 @@ public TValue AddOrUpdate(TKey key, Func addValueFactory, Func //key exists, try to update { TValue newValue = updateValueFactory(key, oldValue); - if (TryUpdate(key, newValue, oldValue)) + if (TryUpdateInternal(key, hashcode, newValue, oldValue)) { return newValue; }