Make EqualityComparer thread-safe for Mono (#31990)
authorJan Kotas <jkotas@microsoft.com>
Sun, 9 Feb 2020 12:03:08 +0000 (04:03 -0800)
committerGitHub <noreply@github.com>
Sun, 9 Feb 2020 12:03:08 +0000 (07:03 -0500)
commita1bc3cc248bcd5b1edbf26cd8e4303b9e8baecdb
tree29c7dfacf8d9418e38be1faed729ea094f6d0bdc
parent3b72a4d7013abd36b0f2e145f44df85c43fc83aa
Make EqualityComparer thread-safe for Mono (#31990)

* Make EqualityComparer thread-safe for Mono

Fixes #3009
Fixes #31988

* Use Interlocked.CompareExchange
src/mono/netcore/System.Private.CoreLib/src/System/Collections/Generic/Comparer.Mono.cs
src/mono/netcore/System.Private.CoreLib/src/System/Collections/Generic/EqualityComparer.Mono.cs