7 writes to m_Cache
System (7)
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (7)
154
m_Cache
= null;
193
m_Cache
= new OverlappedCache(new Overlapped(), objectsToPinArray, s_IOCallback);
197
m_Cache
= new OverlappedCache(new Overlapped(), objectsToPin, s_IOCallback, triedCastingToArray);
231
m_Cache
= overlappedCache == null ? null : Interlocked.Exchange<OverlappedCache>(ref overlappedCache, null);
247
m_Cache
= null;
277
OverlappedCache cache = m_Cache == null ? null : Interlocked.Exchange<OverlappedCache>(ref
m_Cache
, null);
618
OverlappedCache.InterlockedFree(ref
m_Cache
);
23 references to m_Cache
System (23)
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (23)
111
if (
m_Cache
!= null)
113
if (objectsToPin == null &&
m_Cache
.PinnedObjects == null)
117
else if (
m_Cache
.PinnedObjects != null)
119
if (
m_Cache
.PinnedObjectsArray == null)
121
if (objectsToPin ==
m_Cache
.PinnedObjects)
134
if (objectsToPinArray != null && objectsToPinArray.Length ==
m_Cache
.PinnedObjectsArray.Length)
139
if (objectsToPinArray[i] !=
m_Cache
.PinnedObjectsArray[i])
150
if (!useCache &&
m_Cache
!= null)
153
m_Cache
.Free();
188
if (
m_Cache
== null)
205
m_Cache
.Overlapped.AsyncResult = this;
211
GlobalLog.Print("BaseOverlappedAsyncResult#" + ValidationHelper.HashString(this) + "::EnableCompletionPort() overlapped:" + ValidationHelper.HashString(
m_Cache
.Overlapped) + " NativeOverlapped = " +
m_Cache
.NativeOverlapped.DangerousGetHandle().ToString("x"));
228
GlobalLog.Assert(
m_Cache
== null, "BaseOverlappedAsyncResult#{0}::SetUnmanagedStructures()|Cache already set up. (Called twice?)", ValidationHelper.HashString(this));
244
if (
m_Cache
!= null)
246
m_Cache
.Free();
277
OverlappedCache cache =
m_Cache
== null ? null : Interlocked.Exchange<OverlappedCache>(ref m_Cache, null);
317
Debug.Assert((IntPtr)nativeOverlapped == asyncResult.
m_Cache
.NativeOverlapped.DangerousGetHandle(), "Handle mismatch");
363
asyncResult.
m_Cache
.NativeOverlapped,
544
if (
m_Cache
!= null)
547
m_Cache
.Overlapped.AsyncResult = null;
578
return
m_Cache
== null ? SafeNativeOverlapped.Zero :
m_Cache
.NativeOverlapped;