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