4 writes to _stack
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (4)
104_stack = null; 107if (!SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryTake(this, out _stack)) 109_stack = SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.PrepNew(this, new Stack<RefAsValueType<Node>>(root.Height)); 154_stack = null;
12 references to _stack
System.Collections.Immutable (12)
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (12)
148if (_stack != null && _stack.TryUse(ref this, out Stack<RefAsValueType<Node>>? stack)) 151SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryAdd(this, _stack!); 166if (_stack != null) 168Stack<RefAsValueType<ImmutableList<T>.Node>> stack = _stack.Use(ref this); 192if (_stack != null) 201Debug.Assert(_stack != null); 202Stack<RefAsValueType<ImmutableList<T>.Node>> stack = _stack.Use(ref this); 248if (_root == null || (_stack != null && !_stack.IsOwned(ref this))) 275Debug.Assert(_stack != null); 276Stack<RefAsValueType<ImmutableList<T>.Node>> stack = _stack.Use(ref this);