Skip to content

Commit

Permalink
Removes calls to NotifyOfCrossThreadDependency.
Browse files Browse the repository at this point in the history
The underlying debugger issue has been fixed, so the calls are not needed anymore. (changeset 1274269)
  • Loading branch information
tmat committed Jun 20, 2014
1 parent e68ce06 commit db7c3c7
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,6 @@ public override SyntaxNode GetStructure(Microsoft.CodeAnalysis.SyntaxTrivia triv
var parent = trivia.Token.Parent;
if (parent != null)
{
DebuggerUtilities.CallBeforeAcquiringLock(); //see method comment

SyntaxNode structure;
var structsInParent = structuresTable.GetOrCreateValue(parent);
lock (structsInParent)
Expand Down
1 change: 0 additions & 1 deletion Src/Compilers/Core/Source/CodeAnalysis.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@
<Compile Include="InternalUtilities\ConcurrentLruCache.cs" />
<Compile Include="InternalUtilities\ConcurrentSet.cs" />
<Compile Include="InternalUtilities\ConsList`1.cs" />
<Compile Include="InternalUtilities\DebuggerUtilities.cs" />
<Compile Include="InternalUtilities\DecimalUtilities.cs" />
<Compile Include="InternalUtilities\DocumentationCommentXmlNames.cs" />
<Compile Include="InternalUtilities\EnumerableExtensions.ComparisonComparer.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ internal Cci.IFieldReference CreateDataField(byte[] data)

Cci.ITypeReference type = this.proxyTypes.GetOrAdd((uint)data.Length, size => GetStorageStruct(size));

DebuggerUtilities.CallBeforeAcquiringLock(); //see method comment

var block = new MetadataBlock(data);

//This object may be accessed concurrently
Expand Down
29 changes: 0 additions & 29 deletions Src/Compilers/Core/Source/InternalUtilities/DebuggerUtilities.cs

This file was deleted.

7 changes: 0 additions & 7 deletions Src/Compilers/Core/Source/NonPortable/MetadataCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ private static void CompactCache(Object state)

compactCollectionCount = currentCollectionCount;

DebuggerUtilities.CallBeforeAcquiringLock(); //see method comment
lock (Guard)
{
if (!(AnyAssembliesCached() || AnyModulesCached() || AnyAnalyzerAssembliesCached()))
Expand Down Expand Up @@ -268,8 +267,6 @@ internal static void TriggerCacheCompact()
/// </summary>
private static void CompactCacheOfAssemblies()
{
DebuggerUtilities.CallBeforeAcquiringLock(); //see method comment

// Do one pass through the assemblyKeys list
int originalCount = -1;

Expand Down Expand Up @@ -335,8 +332,6 @@ private static bool AnyAssembliesCached()
/// </summary>
private static void CompactCacheOfModules()
{
DebuggerUtilities.CallBeforeAcquiringLock(); //see method comment

// Do one pass through the moduleKeys list
int originalCount = -1;

Expand Down Expand Up @@ -402,8 +397,6 @@ private static bool AnyModulesCached()
/// </summary>
private static void CompactCacheOfAnalyzers()
{
DebuggerUtilities.CallBeforeAcquiringLock(); //see method comment

// Do one pass through the analyzerAssemblyKeys list
int originalCount = -1;

Expand Down

0 comments on commit db7c3c7

Please sign in to comment.