4 writes to _strongCache
Microsoft.Build (4)
Evaluation\ProjectRootElementCache.cs (4)
159
_strongCache
= new LinkedList<ProjectRootElement>();
442
_strongCache
= new LinkedList<ProjectRootElement>();
466
_strongCache
= new LinkedList<ProjectRootElement>();
523
_strongCache
= new LinkedList<ProjectRootElement>();
18 references to _strongCache
Microsoft.Build (18)
Evaluation\ProjectRootElementCache.cs (18)
439
DebugTraceCache("Clearing strong refs: ",
_strongCache
.Count);
441
LinkedList<ProjectRootElement> oldStrongCache =
_strongCache
;
464
LinkedList<ProjectRootElement> oldStrongCache =
_strongCache
;
476
for (var listNode =
_strongCache
.First; listNode != null;)
486
_strongCache
.Remove(listNode);
494
IList<string> toBeRemovedFromWeakRefs = _weakCache.Keys.Except(
_strongCache
.Select(i => i.FullPath)).ToList();
522
LinkedList<ProjectRootElement> oldStrongCache =
_strongCache
;
541
_strongCache
.AddFirst(kvp.Value);
610
_strongCache
.Remove(existingWeakEntry);
633
LinkedListNode<ProjectRootElement> node =
_strongCache
.First;
640
_strongCache
.Remove(node);
641
_strongCache
.AddFirst(node);
649
_strongCache
.AddFirst(projectRootElement);
651
if (
_strongCache
.Count > s_maximumStrongCacheSize)
653
node =
_strongCache
.Last;
656
_strongCache
.Remove(node);
673
LinkedListNode<ProjectRootElement> strongCacheEntry =
_strongCache
.Find(projectRootElement);
676
_strongCache
.Remove(strongCacheEntry);