2 writes to _firstItem
Roslyn.Diagnostics.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ObjectPool.cs (2)
143
if (inst == null || inst != Interlocked.CompareExchange(ref
_firstItem
, null, inst))
205
_firstItem
= obj;
3 references to _firstItem
Roslyn.Diagnostics.Analyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ObjectPool.cs (3)
142
T? inst =
_firstItem
;
200
if (
_firstItem
== null)
273
Debug.Assert(
_firstItem
!= obj, "freeing twice?");