4 writes to _stack
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableSortedDictionary_2.Enumerator.cs (4)
73_stack = null; 76if (!SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryTake(this, out _stack)) 78_stack = SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.PrepNew(this, new Stack<RefAsValueType<Node>>(root.Height)); 129_stack = null;
11 references to _stack
System.Collections.Immutable (11)
System\Collections\Immutable\ImmutableSortedDictionary_2.Enumerator.cs (11)
123if (_stack != null && _stack.TryUse(ref this, out Stack<RefAsValueType<Node>>? stack)) 126SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryAdd(this, _stack!); 141if (_stack != null) 143Stack<RefAsValueType<ImmutableSortedDictionary<TKey, TValue>.Node>> stack = _stack.Use(ref this); 166if (_stack != null) 168Stack<RefAsValueType<ImmutableSortedDictionary<TKey, TValue>.Node>> stack = _stack.Use(ref this); 185if (_root == null || (_stack != null && !_stack.IsOwned(ref this))) 210Debug.Assert(_stack != null); 211Stack<RefAsValueType<ImmutableSortedDictionary<TKey, TValue>.Node>> stack = _stack.Use(ref this);