4 writes to _stack
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableSortedSet_1.Enumerator.cs (4)
87_stack = null; 88if (!SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryTake(this, out _stack)) 90_stack = SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.PrepNew(this, new Stack<RefAsValueType<Node>>(root.Height)); 138_stack = null;
8 references to _stack
System.Collections.Immutable (8)
System\Collections\Immutable\ImmutableSortedSet_1.Enumerator.cs (8)
134if (_stack != null && _stack.TryUse(ref this, out Stack<RefAsValueType<Node>>? stack)) 137SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryAdd(this, _stack!); 151Stack<RefAsValueType<ImmutableSortedSet<T>.Node>> stack = _stack!.Use(ref this); 175Stack<RefAsValueType<ImmutableSortedSet<T>.Node>> stack = _stack!.Use(ref this); 191if (_root == null || (_stack != null && !_stack.IsOwned(ref this))) 216Stack<RefAsValueType<ImmutableSortedSet<T>.Node>> stack = _stack!.Use(ref this);