62 references to IsAllocated
aspire (1)
Processes\WindowsProcessInterop.cs (1)
491if (pinnedJobHandles.IsAllocated)
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\ResponseBody.cs (1)
296if (pin.IsAllocated)
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpServer.cs (1)
142if (_httpServerHandle.IsAllocated)
Microsoft.ML.LightGbm (2)
WrappedLightGbmDataset.cs (2)
78if (gcValues[i].IsAllocated) 80if (gcIndices[i].IsAllocated)
Microsoft.ML.Mkl.Components (1)
SymSgdClassificationTrainer.cs (1)
809if (stateGCHandle.IsAllocated)
Microsoft.NET.StringTools (4)
WeakStringCache.cs (4)
41public bool IsUsed => weakHandle.IsAllocated && weakHandle.Target != null; 50if (!weakHandle.IsAllocated) 74if (weakHandle.IsAllocated) 89if (weakHandle.IsAllocated)
PresentationCore (1)
MS\Internal\FontCache\FontSource.cs (1)
455Debug.Assert(_memoryHandle.IsAllocated);
PresentationFramework (3)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
18if (handle.IsAllocated)
System\Windows\Documents\WinEventHandler.cs (2)
73if (_gchThis.IsAllocated) 82if (_gchThis.IsAllocated)
System.Data.OleDb (1)
ColumnBinding.cs (1)
211if (_pinnedBuffer.IsAllocated)
System.Diagnostics.EventLog (2)
System\Diagnostics\EventLog.cs (1)
932if (handles[i].IsAllocated)
System\Diagnostics\EventLogInternal.cs (1)
1404if (stringHandles[i].IsAllocated)
System.DirectoryServices (1)
Interop\AdsValueHelper2.cs (1)
74if (_pinnedHandle.IsAllocated)
System.Net.Http.WinHttpHandler (8)
System\Net\Http\WinHttpRequestState.cs (8)
44if (!_operationHandle.IsAllocated) 164if (!_cachedReceivePinnedBuffer.IsAllocated || _cachedReceivePinnedBuffer.Target != buffer) 166if (_cachedReceivePinnedBuffer.IsAllocated) 177if (!_cachedSendPinnedBuffer.IsAllocated || _cachedSendPinnedBuffer.Target != buffer) 179if (_cachedSendPinnedBuffer.IsAllocated) 204if (_operationHandle.IsAllocated) 209if (_cachedReceivePinnedBuffer.IsAllocated) 215if (_cachedSendPinnedBuffer.IsAllocated)
System.Net.Quic (8)
System\Net\Quic\Internal\MsQuicSafeHandle.cs (1)
131if (_context.IsAllocated)
System\Net\Quic\Internal\ResettableValueTaskSource.cs (2)
101Debug.Assert(!_keepAlive.IsAllocated); 210if (_keepAlive.IsAllocated)
System\Net\Quic\Internal\ValueTaskSource.cs (2)
84Debug.Assert(!_keepAlive.IsAllocated); 135if (_keepAlive.IsAllocated)
System\Net\Quic\QuicConnection.cs (1)
787if (!stateHandle.IsAllocated || stateHandle.Target is not QuicConnection instance)
System\Net\Quic\QuicListener.cs (1)
376if (!stateHandle.IsAllocated || stateHandle.Target is not QuicListener instance)
System\Net\Quic\QuicStream.cs (1)
719if (!stateHandle.IsAllocated || stateHandle.Target is not QuicStream instance)
System.Net.Security (2)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (2)
157Debug.Assert(_gch.IsAllocated); 173Debug.Assert(_gch.IsAllocated);
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\MemoryHandle.cs (1)
44if (_handle.IsAllocated)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (1)
726if (pPins[i].IsAllocated)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PinnedBufferMemoryStream.cs (1)
43if (_pinningHandle.IsAllocated)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
729if (_nativeObjectWrapperWeakHandle.IsAllocated)
System.Private.Windows.Core (1)
Windows\Win32\System\Variant\VARIANT.cs (1)
435if (pin.IsAllocated)
System.Resources.Extensions (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PinnedBufferMemoryStream.cs (1)
43if (_pinningHandle.IsAllocated)
System.Runtime.Caching (1)
System\Runtime\Caching\SRef.cs (1)
63if (_handle.IsAllocated)
System.Security.Principal.Windows (1)
System\Security\Principal\SID.cs (1)
1081if (HandleArray[i].IsAllocated)
System.ServiceProcess.ServiceController (1)
System\ServiceProcess\ServiceController.cs (1)
908if (argPtrsHandle.IsAllocated)
System.Speech (6)
Internal\Synthesis\ConvertTextFrag.cs (3)
127if (sapiFrag.gcNext.IsAllocated) 133if (sapiFrag.gcPhoneme.IsAllocated) 138if (sapiFrag.gcSayAsCategory.IsAllocated)
Internal\Synthesis\WaveHeader.cs (3)
44if (_gcHandleWaveHdr.IsAllocated) 57if (_gcHandle.IsAllocated) 70if (!_gcHandleWaveHdr.IsAllocated)
System.Windows.Forms (9)
System\Windows\Forms\Components\Timer.cs (1)
120if (_timerRoot.IsAllocated)
System\Windows\Forms\Control.ControlNativeWindow.cs (2)
41if (!_rootRef.IsAllocated) 48if (_rootRef.IsAllocated)
System\Windows\Forms\NativeWindow.cs (4)
253if (oldRoot.IsAllocated) 561s_windowHandles.TryGetValue(handle, out GCHandle value) && value.IsAllocated 623if (gcHandle.IsAllocated) 728if (root.IsAllocated)
System\Windows\Forms\NotifyIcon.NotifyIconNativeWindow.cs (2)
41if (!_rootRef.IsAllocated) 48if (_rootRef.IsAllocated)
UIAutomationClient (1)
MS\Internal\Automation\WinEventWrap.cs (1)
66if (_gchThis.IsAllocated)
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\MSAAWinEventWrap.cs (1)
67if (_gchThis.IsAllocated)