Skip to content

Commit 9bd4f91

Browse files
ErarndtSimaTian
andauthored
Cleanup CodeAnalysis suppression for GC.Collect (#11814)
Co-authored-by: Tomas Bartonek <[email protected]>
1 parent a90d218 commit 9bd4f91

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Build/BackEnd/Node/OutOfProcNode.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Collections.Concurrent;
66
using System.Collections.Generic;
77
using System.Diagnostics;
8-
using System.Diagnostics.CodeAnalysis;
98
using System.Globalization;
109
using System.IO;
1110
using System.Threading;
@@ -542,7 +541,6 @@ private NodeEngineShutdownReason HandleShutdown(out Exception exception)
542541
/// <summary>
543542
/// Clears all the caches used during the build.
544543
/// </summary>
545-
[SuppressMessage("Microsoft.Reliability", "CA2001:AvoidCallingProblematicMethods", MessageId = "System.GC.Collect", Justification = "Required because when calling this method, we want the memory back NOW.")]
546544
private void CleanupCaches()
547545
{
548546
if (_componentFactories.GetComponent(BuildComponentType.ConfigCache) is IConfigCache configCache)

0 commit comments

Comments
 (0)