diff options
author | Jan Kotas <jkotas@microsoft.com> | 2015-03-11 15:04:47 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2015-03-11 15:04:47 -0700 |
commit | 94301622df8e7b2127ec991f4320f36dbf480edf (patch) | |
tree | 93b2c24d873416eb852b92437c5adba31e3bcb99 | |
parent | 39deca543638584337c40c923e2bd9c8b0602ad3 (diff) | |
parent | e7ef23224d9d626c09f77619dfa8cce1ceef7f36 (diff) | |
download | coreclr-94301622df8e7b2127ec991f4320f36dbf480edf.tar.gz coreclr-94301622df8e7b2127ec991f4320f36dbf480edf.tar.bz2 coreclr-94301622df8e7b2127ec991f4320f36dbf480edf.zip |
Merge pull request #434 from AlexGhiondea/concurrentDict
Remove the CDS_COMPILE_JUST_THIS define from the ConcurrentDictionary.cs file
-rw-r--r-- | src/mscorlib/src/System/Collections/Concurrent/ConcurrentDictionary.cs | 39 |
1 files changed, 7 insertions, 32 deletions
diff --git a/src/mscorlib/src/System/Collections/Concurrent/ConcurrentDictionary.cs b/src/mscorlib/src/System/Collections/Concurrent/ConcurrentDictionary.cs index ef18182c0c..38085b8d4f 100644 --- a/src/mscorlib/src/System/Collections/Concurrent/ConcurrentDictionary.cs +++ b/src/mscorlib/src/System/Collections/Concurrent/ConcurrentDictionary.cs @@ -11,28 +11,19 @@ ** ===========================================================*/ -// If CDS_COMPILE_JUST_THIS symbol is defined, this file compiles separately, -// with no dependencies other than .NET Framework 3.5. - -//#define CDS_COMPILE_JUST_THIS - using System; +using System.Collections; using System.Collections.Generic; -using System.Text; -using System.Threading; -using System.Runtime.InteropServices; +using System.Collections.ObjectModel; using System.Diagnostics; -using System.Collections; +using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.Contracts; +using System.Runtime.InteropServices; using System.Runtime.Serialization; +using System.Text; +using System.Threading; using System.Security; using System.Security.Permissions; -using System.Collections.ObjectModel; - -#if !CDS_COMPILE_JUST_THIS -using System.Diagnostics.Contracts; -#endif - -using System.Diagnostics.CodeAnalysis; namespace System.Collections.Concurrent { @@ -1890,12 +1881,7 @@ namespace System.Collections.Concurrent bool lockTaken = false; try { -#if CDS_COMPILE_JUST_THIS - Monitor.Enter(m_tables.m_locks[i]); - lockTaken = true; -#else Monitor.Enter(locks[i], ref lockTaken); -#endif } finally { @@ -1987,14 +1973,7 @@ namespace System.Collections.Concurrent [Conditional("DEBUG")] private void Assert(bool condition) { -#if CDS_COMPILE_JUST_THIS - if (!condition) - { - throw new Exception("Assertion failed."); - } -#else Contract.Assert(condition); -#endif } /// <summary> @@ -2006,11 +1985,7 @@ namespace System.Collections.Concurrent { Assert(key != null); -#if CDS_COMPILE_JUST_THIS - return key; -#else return Environment.GetResourceString(key); -#endif } /// <summary> |