2 writes to m_NotGen2
System (2)
parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (2)
51
m_NotGen2
= new List<object>(DefaultNumberOfBuffers);
271
m_NotGen2
= notInGen2;
21 references to m_NotGen2
System (21)
parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (21)
175
PinnableBufferCacheEventSource.Log.FreeBufferStillTooYoung(m_CacheName,
m_NotGen2
.Count);
176
m_NotGen2
.Add(buffer);
209
PinnableBufferCacheEventSource.Log.AllocateBufferFreeListEmpty(m_CacheName,
m_NotGen2
.Count);
212
if (
m_NotGen2
.Count == 0)
217
int idx =
m_NotGen2
.Count - 1;
218
if (GC.GetGeneration(
m_NotGen2
[idx]) < GC.MaxGeneration && GC.GetGeneration(
m_NotGen2
[0]) == GC.MaxGeneration)
220
returnBuffer =
m_NotGen2
[idx];
221
m_NotGen2
.RemoveAt(idx);
226
PinnableBufferCacheEventSource.Log.AllocateBufferFromNotGen2(m_CacheName,
m_NotGen2
.Count);
234
if (
m_NotGen2
.Count == m_restockSize / 2)
255
PinnableBufferCacheEventSource.Log.AllocateBufferAged(m_CacheName,
m_NotGen2
.Count);
256
for (int i = 0; i <
m_NotGen2
.Count; i++)
259
object currentBuffer =
m_NotGen2
[i];
309
m_NotGen2
.Add(newBuffer);
372
if (
m_NotGen2
.Count > 0)
379
PinnableBufferCacheEventSource.Log.TrimFlush(m_CacheName, m_buffersUnderManagement, freeCount,
m_NotGen2
.Count);
385
PinnableBufferCacheEventSource.Log.TrimFree(m_CacheName, m_buffersUnderManagement, freeCount,
m_NotGen2
.Count);
386
m_buffersUnderManagement -=
m_NotGen2
.Count;
393
m_NotGen2
.Clear();
415
m_NotGen2
.Add(buffer);