parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (11)
111if (!m_FreeList.TryPop(out returnBuffer))
126foreach (object o in m_FreeList)
134PinnableBufferCacheEventSource.Log.WalkFreeListResult(m_CacheName, m_FreeList.Count, nonGen2Count);
139PinnableBufferCacheEventSource.Log.AllocateBuffer(m_CacheName, PinnableBufferCacheEventSource.AddressOf(returnBuffer), returnBuffer.GetHashCode(), GC.GetGeneration(returnBuffer), m_FreeList.Count);
156PinnableBufferCacheEventSource.Log.FreeBuffer(m_CacheName, PinnableBufferCacheEventSource.AddressOf(buffer), buffer.GetHashCode(), m_FreeList.Count);
161PinnableBufferCacheEventSource.Log.FreeBufferNull(m_CacheName, m_FreeList.Count);
184m_FreeList.Push(buffer);
200if (m_FreeList.TryPop(out returnBuffer))
262m_FreeList.Push(currentBuffer);
369var freeCount = m_FreeList.Count; // This is expensive to fetch, do it once.
414if (m_FreeList.TryPop(out buffer))