4 writes to _stack
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableSortedDictionary_2.Enumerator.cs (4)
73
_stack
= null;
76
if (!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)
123
if (
_stack
!= null &&
_stack
.TryUse(ref this, out Stack<RefAsValueType<Node>>? stack))
126
SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryAdd(this,
_stack
!);
141
if (
_stack
!= null)
143
Stack<RefAsValueType<ImmutableSortedDictionary<TKey, TValue>.Node>> stack =
_stack
.Use(ref this);
166
if (
_stack
!= null)
168
Stack<RefAsValueType<ImmutableSortedDictionary<TKey, TValue>.Node>> stack =
_stack
.Use(ref this);
185
if (_root == null || (
_stack
!= null && !
_stack
.IsOwned(ref this)))
210
Debug.Assert(
_stack
!= null);
211
Stack<RefAsValueType<ImmutableSortedDictionary<TKey, TValue>.Node>> stack =
_stack
.Use(ref this);