7 writes to m_restockSize
System (7)
parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (7)
285
m_restockSize
= 4;
287
m_restockSize
= DefaultNumberOfBuffers;
289
m_restockSize
= m_restockSize * 2; // Grow quickly at small sizes
291
m_restockSize
= m_restockSize * 3 / 2; // Less agressively at large ones
293
m_restockSize
= 4096; // Cap how agressive we are
297
m_restockSize
= Math.Max(m_restockSize, m_minBufferCount - m_buffersUnderManagement);
391
m_restockSize
= Math.Max(newRestockSize, DefaultNumberOfBuffers);
13 references to m_restockSize
System (13)
parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (13)
204
if (
m_restockSize
== 0)
234
if (m_NotGen2.Count ==
m_restockSize
/ 2)
284
if (
m_restockSize
== 0)
286
else if (
m_restockSize
< DefaultNumberOfBuffers)
288
else if (
m_restockSize
< 256)
289
m_restockSize =
m_restockSize
* 2; // Grow quickly at small sizes
290
else if (
m_restockSize
< 4096)
291
m_restockSize =
m_restockSize
* 3 / 2; // Less agressively at large ones
297
m_restockSize = Math.Max(
m_restockSize
, m_minBufferCount - m_buffersUnderManagement);
299
PinnableBufferCacheEventSource.Log.AllocateBufferCreatingNewBuffers(m_CacheName, m_buffersUnderManagement,
m_restockSize
);
300
for (int i = 0; i <
m_restockSize
; i++)
311
m_buffersUnderManagement +=
m_restockSize
;
390
if (newRestockSize <
m_restockSize
)