826 references to KeepAlive
HttpStress (1)
Program.cs (1)
626GC.KeepAlive(listener);
IdeCoreBenchmarks (1)
NavigateToBenchmarks.cs (1)
135GC.KeepAlive(roots);
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (2)
14GC.KeepAlive(test); 17GC.KeepAlive(/*MMProperty*/frame.Component);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
1645builder.AddAttribute(1, "onsubmit", () => { GC.KeepAlive(new object()); });
Microsoft.AspNetCore.Components.Performance (1)
RenderTreeDiffBuilderBenchmark.cs (1)
83GC.KeepAlive(diff);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (2)
14GC.KeepAlive(test); 17GC.KeepAlive(/*MMProperty*/frame.Component);
Microsoft.AspNetCore.Components.Tests (1)
RendererTest.cs (1)
5916GC.KeepAlive(unrelatedThingToMakeTheLambdaCapture);
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHost.cs (1)
51GC.KeepAlive(typeof(JSInteropMethods));
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\RootComponentMappingTest.cs (1)
20GC.KeepAlive(mapping);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
597GC.KeepAlive(expectedParameterValue);
Microsoft.AspNetCore.Http.Microbenchmarks (14)
RouteValueDictionaryBenchmark.cs (14)
232GC.KeepAlive(kvp.Value); 243GC.KeepAlive(kvp.Value); 252GC.KeepAlive(dictionary["action"]); 253GC.KeepAlive(dictionary["controller"]); 254GC.KeepAlive(dictionary["id"]); 262GC.KeepAlive(dictionary["action"]); 263GC.KeepAlive(dictionary["controller"]); 264GC.KeepAlive(dictionary["id"]); 305GC.KeepAlive(action); 306GC.KeepAlive(controller); 307GC.KeepAlive(id); 318GC.KeepAlive(action); 319GC.KeepAlive(controller); 320GC.KeepAlive(id);
Microsoft.AspNetCore.Routing.Microbenchmarks (15)
EndpointMetadataCollectionBenchmark.cs (15)
49GC.KeepAlive(_items[i] as IMetadata1); 54GC.KeepAlive(_items[i] as IMetadata2); 59GC.KeepAlive(_items[i] as IMetadata3); 64GC.KeepAlive(_items[i] as IMetadata4); 69GC.KeepAlive(_items[i] as IMetadata5); 76GC.KeepAlive(_collection.GetMetadata<IMetadata1>()); 77GC.KeepAlive(_collection.GetMetadata<IMetadata2>()); 78GC.KeepAlive(_collection.GetMetadata<IMetadata3>()); 79GC.KeepAlive(_collection.GetMetadata<IMetadata4>()); 80GC.KeepAlive(_collection.GetMetadata<IMetadata5>()); 88GC.KeepAlive(item); 93GC.KeepAlive(item); 98GC.KeepAlive(item); 103GC.KeepAlive(item); 108GC.KeepAlive(item);
Microsoft.AspNetCore.Routing.Tests (4)
DataSourceDependentCacheTest.cs (1)
45GC.KeepAlive(cache.Value);
Matching\BarebonesMatcherConformanceTest.cs (1)
34GC.KeepAlive(new object[] { template, path, keys, values });
Matching\FullFeaturedMatcherConformanceTest.cs (2)
190GC.KeepAlive(keys); 191GC.KeepAlive(values);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
474public void OnInvoked() => GC.KeepAlive(_handle.Wrapper);
Microsoft.CodeAnalysis (1)
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
367GC.KeepAlive(assemblyMetadata);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (61)
Symbols\Metadata\PE\NoPia.cs (40)
340GC.KeepAlive(localTypes1_1); 341GC.KeepAlive(localTypes2_1); 342GC.KeepAlive(pia1_1); 343GC.KeepAlive(localTypes1_9); 344GC.KeepAlive(library1_9); 677GC.KeepAlive(localTypes1_1); 678GC.KeepAlive(localTypes2_1); 679GC.KeepAlive(pia1_1); 680GC.KeepAlive(localTypes1_9); 681GC.KeepAlive(library1_9); 701GC.KeepAlive(tc1); 702GC.KeepAlive(tc2); 860GC.KeepAlive(tc1); 861GC.KeepAlive(tc2); 862GC.KeepAlive(tc3); 863GC.KeepAlive(tc4); 864GC.KeepAlive(tc5); 865GC.KeepAlive(tc6); 866GC.KeepAlive(tc7); 938GC.KeepAlive(tc1); 939GC.KeepAlive(tc2); 940GC.KeepAlive(tc3); 941GC.KeepAlive(tc4); 942GC.KeepAlive(tc5); 943GC.KeepAlive(tc6); 944GC.KeepAlive(tc7); 1227GC.KeepAlive(tc1); 1228GC.KeepAlive(tc2); 1229GC.KeepAlive(tc3); 1230GC.KeepAlive(tc4); 1231GC.KeepAlive(tc5); 1232GC.KeepAlive(tc6); 1233GC.KeepAlive(tc7); 1343GC.KeepAlive(tc1); 1344GC.KeepAlive(tc2); 1345GC.KeepAlive(tc3); 1346GC.KeepAlive(tc4); 1347GC.KeepAlive(tc5); 1348GC.KeepAlive(tc6); 1349GC.KeepAlive(tc7);
Symbols\Retargeting\NoPia.cs (21)
639GC.KeepAlive(localTypes1_1); 640GC.KeepAlive(localTypes2_1); 641GC.KeepAlive(pia1_1); 642GC.KeepAlive(localTypes1_9); 643GC.KeepAlive(library1_9); 940GC.KeepAlive(localTypes1_1); 941GC.KeepAlive(localTypes2_1); 942GC.KeepAlive(pia1_1); 943GC.KeepAlive(localTypes1_9); 944GC.KeepAlive(library1_9); 1244GC.KeepAlive(localTypes1_1); 1245GC.KeepAlive(localTypes2_1); 1246GC.KeepAlive(pia1_1); 1247GC.KeepAlive(localTypes1_9); 1248GC.KeepAlive(library1_9); 1272GC.KeepAlive(tc1); 1273GC.KeepAlive(tc2); 1298GC.KeepAlive(tc1); 1299GC.KeepAlive(tc2); 1328GC.KeepAlive(tc1); 1329GC.KeepAlive(tc2);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Preview\PreviewWorkspaceTests.cs (1)
160GC.KeepAlive(exportProvider);
Microsoft.CodeAnalysis.Features (3)
Completion\CompletionService.cs (2)
225GC.KeepAlive(semanticModel); 261GC.KeepAlive(semanticModel);
Completion\CompletionService_GetCompletions.cs (1)
119GC.KeepAlive(semanticModel);
Microsoft.CodeAnalysis.UnitTests (6)
Collections\List\ICollection.Generic.Tests.cs (1)
366GC.KeepAlive(collection);
InternalUtilities\WeakListTests.cs (5)
102GC.KeepAlive(b.GetReference()); 204GC.KeepAlive(b); 244GC.KeepAlive(b); 284GC.KeepAlive(b); 316GC.KeepAlive(b);
Microsoft.CodeAnalysis.Workspaces (10)
FindSymbols\ReferenceLocationExtensions.cs (1)
41GC.KeepAlive(compilation);
Workspace\IsolatedAnalyzerFileReference.cs (1)
99GC.KeepAlive(this);
Workspace\Solution\DocumentState.cs (8)
693GC.KeepAlive(newTreeContent); 694GC.KeepAlive(newTextContent); 695GC.KeepAlive(oldTreeContent); 696GC.KeepAlive(oldTextContent); 698GC.KeepAlive(newTree); 699GC.KeepAlive(newText); 700GC.KeepAlive(oldTree); 701GC.KeepAlive(oldText);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
WorkspaceTests\AdhocWorkspaceTests.cs (1)
593GC.KeepAlive(exportProvider);
Microsoft.VisualStudio.LanguageServices (1)
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.cs (1)
101GC.KeepAlive(enabledExtensions);
PresentationCore (19)
MS\Internal\Text\TextInterface\Factory.cs (3)
158GC.KeepAlive(this); 223GC.KeepAlive(this); 317GC.KeepAlive(this);
MS\Internal\TextFormatting\FullTextBreakpoint.cs (2)
102GC.KeepAlive(context); 201GC.KeepAlive(this);
MS\Internal\TextFormatting\FullTextLine.cs (3)
148GC.KeepAlive(this); 313GC.KeepAlive(context); 632GC.KeepAlive(context);
MS\Internal\TextFormatting\TextPenaltyModule.cs (2)
62GC.KeepAlive(this); 85GC.KeepAlive(this);
System\Windows\Input\Stylus\Common\DynamicRendererThreadManager.cs (1)
260GC.KeepAlive(this);
System\Windows\Input\Stylus\Wisp\PenContext.cs (1)
40GC.KeepAlive(this);
System\Windows\Input\Stylus\Wisp\PenThread.cs (1)
42GC.KeepAlive(this);
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (2)
502GC.KeepAlive(this); 1291GC.KeepAlive(this);
System\Windows\Media\textformatting\TextFormatterContext.cs (1)
130GC.KeepAlive(contextInfo);
System\Windows\Media\textformatting\TextLineBreak.cs (1)
97GC.KeepAlive(this);
System\Windows\Media\textformatting\TextParagraphCache.cs (2)
88GC.KeepAlive(context); 153GC.KeepAlive(this);
PresentationFramework (7)
MS\Internal\Data\PropertyPathWorker.cs (1)
668GC.KeepAlive(target); // keep target alive during changes (bug 956831)
MS\Internal\Data\XmlBindingWorker.cs (1)
501GC.KeepAlive(target); // keep target alive during process xml change (bug 1494812)
System\Windows\Controls\ListBox.cs (1)
898GC.KeepAlive(anchorInfo);
System\Windows\Data\BindingExpression.cs (4)
552GC.KeepAlive(target); // keep target alive during activation (bug 956831) 840GC.KeepAlive(target); // keep target alive during activation (bug 956831) 1029GC.KeepAlive(target); // keep target alive during activation (bug 956831) 1512GC.KeepAlive(target); // keep target alive during transfer (bug 956831)
System.Data.Odbc (2)
src\libraries\Common\src\System\Runtime\InteropServices\HandleRefMarshaller.cs (1)
22public void OnInvoked() => GC.KeepAlive(_handle.Wrapper);
System\Data\Odbc\OdbcConnection.cs (1)
891GC.KeepAlive(this);
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\ActivitySource.cs (1)
75GC.KeepAlive(DiagnosticSourceEventSource.Log);
System\Diagnostics\DiagnosticListener.cs (2)
147GC.KeepAlive(DiagnosticSourceEventSource.Log); 326GC.KeepAlive("");
System\Diagnostics\Metrics\Meter.cs (1)
99GC.KeepAlive(MetricsEventSource.Log);
System.Drawing.Common (470)
System\Drawing\Bitmap.cs (12)
95GC.KeepAlive(g); 183GC.KeepAlive(this); 207GC.KeepAlive(this); 281GC.KeepAlive(this); 294GC.KeepAlive(this); 311GC.KeepAlive(this); 333GC.KeepAlive(this); 339GC.KeepAlive(this); 361GC.KeepAlive(this); 382GC.KeepAlive(this); 383GC.KeepAlive(effect); 478GC.KeepAlive(this);
System\Drawing\BufferedGraphics.cs (1)
102GC.KeepAlive(refTargetDC.Wrapper);
System\Drawing\BufferedGraphicsContext.cs (3)
334GC.KeepAlive(this); 436GC.KeepAlive(this); 452GC.KeepAlive(this);
System\Drawing\Drawing2D\AdjustableArrowCap.cs (8)
27GC.KeepAlive(this); 33GC.KeepAlive(this); 43GC.KeepAlive(this); 49GC.KeepAlive(this); 59GC.KeepAlive(this); 65GC.KeepAlive(this); 75GC.KeepAlive(this); 81GC.KeepAlive(this);
System\Drawing\Drawing2D\CustomLineCap.cs (11)
95GC.KeepAlive(this); 102GC.KeepAlive(this); 111GC.KeepAlive(this); 121GC.KeepAlive(this); 127GC.KeepAlive(this); 137GC.KeepAlive(this); 143GC.KeepAlive(this); 153GC.KeepAlive(this); 159GC.KeepAlive(this); 169GC.KeepAlive(this); 175GC.KeepAlive(this);
System\Drawing\Drawing2D\GraphicsPath.cs (55)
97GC.KeepAlive(this); 145GC.KeepAlive(this); 154GC.KeepAlive(this); 163GC.KeepAlive(this); 193GC.KeepAlive(this); 203GC.KeepAlive(this); 209GC.KeepAlive(this); 215GC.KeepAlive(this); 221GC.KeepAlive(this); 227GC.KeepAlive(this); 233GC.KeepAlive(this); 240GC.KeepAlive(this); 257GC.KeepAlive(this); 258GC.KeepAlive(graphics); 287GC.KeepAlive(this); 288GC.KeepAlive(pen); 289GC.KeepAlive(graphics); 308GC.KeepAlive(this); 342GC.KeepAlive(this); 369GC.KeepAlive(this); 379GC.KeepAlive(this); 394GC.KeepAlive(this); 414GC.KeepAlive(this); 441GC.KeepAlive(this); 477GC.KeepAlive(this); 502GC.KeepAlive(this); 525GC.KeepAlive(this); 550GC.KeepAlive(this); 576GC.KeepAlive(this); 606GC.KeepAlive(this); 615GC.KeepAlive(this); 635GC.KeepAlive(this); 655GC.KeepAlive(this); 706GC.KeepAlive(this); 724GC.KeepAlive(this); 744GC.KeepAlive(this); 765GC.KeepAlive(this); 773GC.KeepAlive(addingPath); 774GC.KeepAlive(this); 800GC.KeepAlive(family); 801GC.KeepAlive(format); 802GC.KeepAlive(this); 812GC.KeepAlive(matrix); 813GC.KeepAlive(this); 829GC.KeepAlive(this); 830GC.KeepAlive(matrix); 831GC.KeepAlive(pen); 842GC.KeepAlive(this); 859GC.KeepAlive(pen); 860GC.KeepAlive(matrix); 861GC.KeepAlive(this); 920GC.KeepAlive(this); 930GC.KeepAlive(this); 975GC.KeepAlive(this); 1020GC.KeepAlive(this);
System\Drawing\Drawing2D\GraphicsPathIterator.cs (12)
15GC.KeepAlive(path); 66GC.KeepAlive(this); 77GC.KeepAlive(this); 89GC.KeepAlive(this); 101GC.KeepAlive(this); 110GC.KeepAlive(this); 120GC.KeepAlive(this); 131GC.KeepAlive(this); 140GC.KeepAlive(this); 147GC.KeepAlive(this); 184GC.KeepAlive(this); 233GC.KeepAlive(this);
System\Drawing\Drawing2D\HatchBrush.cs (4)
35GC.KeepAlive(this); 45GC.KeepAlive(this); 56GC.KeepAlive(this); 67GC.KeepAlive(this);
System\Drawing\Drawing2D\LinearGradientBrush.cs (23)
99GC.KeepAlive(this); 109GC.KeepAlive(this); 120GC.KeepAlive(this); 130GC.KeepAlive(this); 141GC.KeepAlive(this); 147GC.KeepAlive(this); 163GC.KeepAlive(this); 175GC.KeepAlive(this); 191GC.KeepAlive(this); 201GC.KeepAlive(this); 210GC.KeepAlive(this); 239GC.KeepAlive(this); 261GC.KeepAlive(this); 272GC.KeepAlive(this); 281GC.KeepAlive(this); 291GC.KeepAlive(this); 298GC.KeepAlive(value); 299GC.KeepAlive(this); 306GC.KeepAlive(this); 316GC.KeepAlive(this); 324GC.KeepAlive(this); 332GC.KeepAlive(this); 340GC.KeepAlive(this);
System\Drawing\Drawing2D\Matrix.cs (22)
104GC.KeepAlive(this); 127GC.KeepAlive(this); 141GC.KeepAlive(this); 152GC.KeepAlive(this); 177GC.KeepAlive(this); 190GC.KeepAlive(this); 191GC.KeepAlive(matrix); 199GC.KeepAlive(this); 207GC.KeepAlive(this); 215GC.KeepAlive(this); 236GC.KeepAlive(this); 242GC.KeepAlive(this); 248GC.KeepAlive(this); 254GC.KeepAlive(this); 280GC.KeepAlive(this); 309GC.KeepAlive(this); 338GC.KeepAlive(this); 372GC.KeepAlive(this); 381GC.KeepAlive(this); 392GC.KeepAlive(this); 408GC.KeepAlive(this); 409GC.KeepAlive(matrix2);
System\Drawing\Drawing2D\PathGradientBrush.cs (27)
117GC.KeepAlive(this); 127GC.KeepAlive(this); 133GC.KeepAlive(this); 150GC.KeepAlive(this); 166GC.KeepAlive(this); 177GC.KeepAlive(this); 183GC.KeepAlive(this); 193GC.KeepAlive(this); 223GC.KeepAlive(this); 240GC.KeepAlive(this); 250GC.KeepAlive(this); 258GC.KeepAlive(this); 288GC.KeepAlive(this); 307GC.KeepAlive(this); 318GC.KeepAlive(this); 325GC.KeepAlive(value); 326GC.KeepAlive(this); 333GC.KeepAlive(this); 346GC.KeepAlive(matrix); 347GC.KeepAlive(this); 355GC.KeepAlive(this); 363GC.KeepAlive(this); 371GC.KeepAlive(this); 381GC.KeepAlive(this); 387GC.KeepAlive(this); 397GC.KeepAlive(this); 406GC.KeepAlive(this);
System\Drawing\Font.cs (8)
211GC.KeepAlive(this); 212GC.KeepAlive(graphics); 220GC.KeepAlive(this); 312GC.KeepAlive(this); 313GC.KeepAlive(graphics); 346GC.KeepAlive(this); 542GC.KeepAlive(this); 679GC.KeepAlive(this);
System\Drawing\FontFamily.cs (6)
129GC.KeepAlive(fontCollection); 292GC.KeepAlive(this); 303GC.KeepAlive(this); 314GC.KeepAlive(this); 325GC.KeepAlive(this); 337GC.KeepAlive(this);
System\Drawing\Graphics.cs (98)
137GC.KeepAlive(image); 435GC.KeepAlive(value); 523GC.KeepAlive(g); 541GC.KeepAlive(path); 548GC.KeepAlive(region); 563GC.KeepAlive(region); 576GC.KeepAlive(region); 628GC.KeepAlive(matrix); 660GC.KeepAlive(pen); 693GC.KeepAlive(pen); 746GC.KeepAlive(pen); 773GC.KeepAlive(pen); 798GC.KeepAlive(pen); 813GC.KeepAlive(pen); 839GC.KeepAlive(pen); 872GC.KeepAlive(pen); 897GC.KeepAlive(pen); 910GC.KeepAlive(pen); 911GC.KeepAlive(path); 932GC.KeepAlive(pen); 958GC.KeepAlive(pen); 996GC.KeepAlive(pen); 1017GC.KeepAlive(pen); 1043GC.KeepAlive(pen); 1078GC.KeepAlive(pen); 1103GC.KeepAlive(pen); 1135GC.KeepAlive(pen); 1159GC.KeepAlive(pen); 1186GC.KeepAlive(pen); 1230GC.KeepAlive(brush); 1269GC.KeepAlive(brush); 1291GC.KeepAlive(brush); 1325GC.KeepAlive(brush); 1364GC.KeepAlive(brush); 1384GC.KeepAlive(brush); 1435GC.KeepAlive(brush); 1466GC.KeepAlive(brush); 1509GC.KeepAlive(brush); 1534GC.KeepAlive(brush); 1572GC.KeepAlive(brush); 1756GC.KeepAlive(font); 1757GC.KeepAlive(brush); 1758GC.KeepAlive(format); 1820GC.KeepAlive(font); 1821GC.KeepAlive(stringFormat); 1987GC.KeepAlive(stringFormat); 1988GC.KeepAlive(font); 2194GC.KeepAlive(imageAttr); 2195GC.KeepAlive(callback); 2247GC.KeepAlive(imageAttr); 2248GC.KeepAlive(callback); 2309GC.KeepAlive(imageAttrs); 2310GC.KeepAlive(callback); 2380GC.KeepAlive(pen); 2409GC.KeepAlive(pen); 2427GC.KeepAlive(pen); 2648GC.KeepAlive(image); 2785GC.KeepAlive(pen); 2810GC.KeepAlive(pen); 2842GC.KeepAlive(pen); 2858GC.KeepAlive(brush); 2859GC.KeepAlive(path); 2875GC.KeepAlive(brush); 2876GC.KeepAlive(region); 2955GC.KeepAlive(imageAttr); 2956GC.KeepAlive(metafile); 2957GC.KeepAlive(this); 2984GC.KeepAlive(imageAttr); 2985GC.KeepAlive(metafile); 2986GC.KeepAlive(this); 3019GC.KeepAlive(imageAttr); 3020GC.KeepAlive(metafile); 3021GC.KeepAlive(this); 3048GC.KeepAlive(imageAttr); 3049GC.KeepAlive(metafile); 3050GC.KeepAlive(this); 3074GC.KeepAlive(imageAttr); 3075GC.KeepAlive(metafile); 3076GC.KeepAlive(this); 3115GC.KeepAlive(imageAttr); 3116GC.KeepAlive(metafile); 3117GC.KeepAlive(this); 3156GC.KeepAlive(imageAttr); 3157GC.KeepAlive(metafile); 3158GC.KeepAlive(this); 3189GC.KeepAlive(imageAttr); 3190GC.KeepAlive(metafile); 3191GC.KeepAlive(this); 3443GC.KeepAlive(this); 3470GC.KeepAlive(this); 3489GC.KeepAlive(this); 3571GC.KeepAlive(this); 3608GC.KeepAlive(cachedBitmap); 3644GC.KeepAlive(effect); 3645GC.KeepAlive(imageAttr); 3646GC.KeepAlive(image); 3647GC.KeepAlive(this); 3654GC.KeepAlive(this);
System\Drawing\Graphics.EnumerateMetafileDataAdapter.cs (2)
43GC.KeepAlive(_callback); 44GC.KeepAlive(_nativeCallback);
System\Drawing\Icon.cs (2)
254GC.KeepAlive(this); 584GC.KeepAlive(this); // finalizer mustn't deallocate data blobs while this method is running
System\Drawing\Image.cs (30)
202GC.KeepAlive(this); 285GC.KeepAlive(this); 286GC.KeepAlive(encoderParams); 326GC.KeepAlive(this); 327GC.KeepAlive(encoderParams); 355GC.KeepAlive(this); 356GC.KeepAlive(encoderParams); 387GC.KeepAlive(this); 388GC.KeepAlive(image); 389GC.KeepAlive(encoderParams); 413GC.KeepAlive(this); 435GC.KeepAlive(this); 452GC.KeepAlive(this); 466GC.KeepAlive(this); 480GC.KeepAlive(this); 495GC.KeepAlive(this); 509GC.KeepAlive(this); 540GC.KeepAlive(this); 574GC.KeepAlive(this); 608GC.KeepAlive(this); 618GC.KeepAlive(this); 642GC.KeepAlive(this); 667GC.KeepAlive(this); 689GC.KeepAlive(this); 701GC.KeepAlive(this); 721GC.KeepAlive(this); 728GC.KeepAlive(this); 737GC.KeepAlive(this); 765GC.KeepAlive(this); 839GC.KeepAlive(this);
System\Drawing\Imaging\Effects\ColorMatrixEffect.cs (1)
30GC.KeepAlive(this);
System\Drawing\Imaging\Effects\Effect.cs (1)
35GC.KeepAlive(this);
System\Drawing\Imaging\EncoderParameter.cs (18)
57GC.KeepAlive(this); 72GC.KeepAlive(this); 87GC.KeepAlive(this); 99GC.KeepAlive(this); 111GC.KeepAlive(this); 124GC.KeepAlive(this); 137GC.KeepAlive(this); 157GC.KeepAlive(this); 167GC.KeepAlive(this); 180GC.KeepAlive(this); 193GC.KeepAlive(this); 205GC.KeepAlive(this); 222GC.KeepAlive(this); 242GC.KeepAlive(this); 262GC.KeepAlive(this); 291GC.KeepAlive(this); 317GC.KeepAlive(this); 343GC.KeepAlive(this);
System\Drawing\Imaging\ImageAttributes.cs (15)
93GC.KeepAlive(this); 134GC.KeepAlive(this); 182GC.KeepAlive(this); 201GC.KeepAlive(this); 220GC.KeepAlive(this); 238GC.KeepAlive(this); 260GC.KeepAlive(this); 281GC.KeepAlive(this); 301GC.KeepAlive(this); 314GC.KeepAlive(this); 378GC.KeepAlive(this); 403GC.KeepAlive(this); 424GC.KeepAlive(this); 451GC.KeepAlive(this); 465GC.KeepAlive(this);
System\Drawing\Imaging\Metafile.cs (2)
548GC.KeepAlive(this); 625GC.KeepAlive(this);
System\Drawing\Pen.cs (47)
72GC.KeepAlive(brush); 92GC.KeepAlive(this); 141GC.KeepAlive(this); 152GC.KeepAlive(this); 172GC.KeepAlive(this); 184GC.KeepAlive(this); 213GC.KeepAlive(this); 226GC.KeepAlive(this); 255GC.KeepAlive(this); 268GC.KeepAlive(this); 279GC.KeepAlive(value); 280GC.KeepAlive(this); 293GC.KeepAlive(this); 304GC.KeepAlive(value); 305GC.KeepAlive(this); 318GC.KeepAlive(this); 334GC.KeepAlive(this); 347GC.KeepAlive(this); 363GC.KeepAlive(this); 376GC.KeepAlive(this); 387GC.KeepAlive(this); 400GC.KeepAlive(this); 416GC.KeepAlive(this); 429GC.KeepAlive(this); 442GC.KeepAlive(value); 443GC.KeepAlive(this); 453GC.KeepAlive(this); 475GC.KeepAlive(matrix); 476GC.KeepAlive(this); 491GC.KeepAlive(this); 505GC.KeepAlive(this); 519GC.KeepAlive(this); 525GC.KeepAlive(this); 538GC.KeepAlive(this); 559GC.KeepAlive(this); 635GC.KeepAlive(this); 643GC.KeepAlive(this); 656GC.KeepAlive(this); 672GC.KeepAlive(this); 696GC.KeepAlive(this); 714GC.KeepAlive(this); 725GC.KeepAlive(this); 738GC.KeepAlive(this); 767GC.KeepAlive(this); 785GC.KeepAlive(this); 809GC.KeepAlive(this); 824GC.KeepAlive(this);
System\Drawing\Region.cs (22)
39GC.KeepAlive(path); 88GC.KeepAlive(this); 118GC.KeepAlive(path); 125GC.KeepAlive(region); 137GC.KeepAlive(path); 144GC.KeepAlive(region); 156GC.KeepAlive(path); 163GC.KeepAlive(region); 175GC.KeepAlive(path); 182GC.KeepAlive(region); 194GC.KeepAlive(path); 201GC.KeepAlive(region); 213GC.KeepAlive(matrix); 221GC.KeepAlive(g); 230GC.KeepAlive(g); 239GC.KeepAlive(g); 257GC.KeepAlive(g); 258GC.KeepAlive(region); 295GC.KeepAlive(g); 314GC.KeepAlive(g); 358GC.KeepAlive(matrix); 365GC.KeepAlive(this);
System\Drawing\SolidBrush.cs (3)
40GC.KeepAlive(this); 68GC.KeepAlive(this); 101GC.KeepAlive(this);
System\Drawing\StringFormat.cs (18)
54GC.KeepAlive(format); 110GC.KeepAlive(this); 116GC.KeepAlive(this); 138GC.KeepAlive(this); 150GC.KeepAlive(this); 161GC.KeepAlive(this); 174GC.KeepAlive(this); 185GC.KeepAlive(this); 198GC.KeepAlive(this); 209GC.KeepAlive(this); 235GC.KeepAlive(this); 259GC.KeepAlive(this); 276GC.KeepAlive(this); 287GC.KeepAlive(this); 349GC.KeepAlive(this); 365GC.KeepAlive(this); 379GC.KeepAlive(this); 388GC.KeepAlive(this);
System\Drawing\Text\FontCollection.cs (1)
59GC.KeepAlive(this);
System\Drawing\Text\PrivateFontCollection.cs (2)
61GC.KeepAlive(this); 74GC.KeepAlive(this);
System\Drawing\TextureBrush.cs (16)
32GC.KeepAlive(image); 51GC.KeepAlive(image); 77GC.KeepAlive(image); 78GC.KeepAlive(imageAttr); 98GC.KeepAlive(this); 109GC.KeepAlive(this); 116GC.KeepAlive(this); 126GC.KeepAlive(this); 137GC.KeepAlive(this); 147GC.KeepAlive(this); 155GC.KeepAlive(this); 174GC.KeepAlive(this); 175GC.KeepAlive(matrix); 187GC.KeepAlive(this); 199GC.KeepAlive(this); 211GC.KeepAlive(this);
System.Net.Security (4)
System\Net\Security\SslStreamCertificateContext.Linux.cs (4)
356GC.KeepAlive(TargetCertificate); 357GC.KeepAlive(_privateIntermediateCertificates); 358GC.KeepAlive(_rootCertificate); 359GC.KeepAlive(caCert);
System.Private.CoreLib (120)
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (1)
70GC.KeepAlive(errorWriter);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
5372GC.KeepAlive(tasks);
src\libraries\System.Private.CoreLib\src\System\WeakReference.cs (5)
132GC.KeepAlive(this); 168GC.KeepAlive(this); 178GC.KeepAlive(this); 200GC.KeepAlive(this); 209GC.KeepAlive(this);
src\libraries\System.Private.CoreLib\src\System\WeakReference.T.cs (4)
114GC.KeepAlive(this); 123GC.KeepAlive(this); 147GC.KeepAlive(this); 157GC.KeepAlive(this);
src\System\Array.CoreCLR.cs (2)
506GC.KeepAlive(this); // Keep the method table alive 612GC.KeepAlive(this); // Keep the method table alive
src\System\Delegate.CoreCLR.cs (1)
427GC.KeepAlive(method);
src\System\Enum.CoreCLR.cs (3)
22GC.KeepAlive(rt); 30GC.KeepAlive(this); 72GC.KeepAlive(enumType);
src\System\GC.CoreCLR.cs (1)
292KeepAlive(wo);
src\System\IO\Stream.CoreCLR.cs (2)
21GC.KeepAlive(this); 35GC.KeepAlive(this);
src\System\Object.CoreCLR.cs (1)
18GC.KeepAlive(this);
src\System\Reflection\Emit\DynamicMethod.CoreCLR.cs (2)
55GC.KeepAlive(methodHandle); 142GC.KeepAlive(this);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (2)
133GC.KeepAlive(method); 143GC.KeepAlive(method);
src\System\Reflection\RuntimeAssembly.cs (1)
591GC.KeepAlive(this); // We directly pass the native handle above - make sure this object stays alive for the call
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
218GC.KeepAlive(module);
src\System\Reflection\RuntimeParameterInfo.cs (2)
247GC.KeepAlive(this); 348GC.KeepAlive(this);
src\System\Reflection\RuntimePropertyInfo.cs (3)
51GC.KeepAlive(module); 72GC.KeepAlive(this); 215GC.KeepAlive(this);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (6)
49GC.KeepAlive(fldInfo); 121GC.KeepAlive(fldInfo); 216GC.KeepAlive(instantiation); 217GC.KeepAlive(methodInfo); 402GC.KeepAlive(obj); // Keep MethodTable alive 428GC.KeepAlive(array); // Keep MethodTable alive
src\System\Runtime\CompilerServices\VirtualDispatchHelpers.cs (1)
70GC.KeepAlive(obj);
src\System\Runtime\DependentHandle.cs (1)
120/// target in a local and calling <see cref="GC.KeepAlive(object)"/> on it after <see cref="Dependent"/> is accessed.
src\System\Runtime\InteropServices\Marshal.CoreCLR.cs (3)
54GC.KeepAlive(rtField); 223GC.KeepAlive(rmi); 321GC.KeepAlive(rt);
src\System\RuntimeHandles.cs (45)
242GC.KeepAlive(genericParameter); 271GC.KeepAlive(genericParameter1); 272GC.KeepAlive(genericParameter2); 295GC.KeepAlive(type); 447GC.KeepAlive(type); 554GC.KeepAlive(type); 574GC.KeepAlive(type); 686GC.KeepAlive(type); 687GC.KeepAlive(target); 720GC.KeepAlive(type); 765GC.KeepAlive(inst); 778GC.KeepAlive(inst); 864GC.KeepAlive(methodContext); 1052GC.KeepAlive(m_value); 1072GC.KeepAlive(method); 1087GC.KeepAlive(methodInfo); 1104GC.KeepAlive(method); 1116GC.KeepAlive(method); 1128GC.KeepAlive(method); 1138GC.KeepAlive(method); 1205GC.KeepAlive(destNullableType); // The obj instance will keep the type alive. 1221GC.KeepAlive(method); 1236GC.KeepAlive(method); 1246GC.KeepAlive(method); 1281GC.KeepAlive(method); 1296GC.KeepAlive(method); 1315GC.KeepAlive(method); 1336GC.KeepAlive(method); 1497GC.KeepAlive(field); 1535GC.KeepAlive(field); 1557GC.KeepAlive(field); 1577GC.KeepAlive(field); 1599GC.KeepAlive(field); 1620GC.KeepAlive(field); 1641GC.KeepAlive(field); 1660GC.KeepAlive(field); 1847GC.KeepAlive(typeInstantiationContext); 1848GC.KeepAlive(methodInstantiationContext); 1888GC.KeepAlive(typeInstantiationContext); 1889GC.KeepAlive(methodInstantiationContext); 1953GC.KeepAlive(typeInstantiationContext); 1954GC.KeepAlive(methodInstantiationContext); 2065GC.KeepAlive(methodHandle); 2072GC.KeepAlive(methodHandle); 2079GC.KeepAlive(fieldHandle);
src\System\RuntimeType.ActivatorCache.cs (1)
136GC.KeepAlive(rt);
src\System\RuntimeType.BoxCache.cs (1)
89GC.KeepAlive(rt);
src\System\RuntimeType.CoreCLR.cs (23)
958GC.KeepAlive(module); 1201GC.KeepAlive(module); 1375GC.KeepAlive(module); 1548GC.KeepAlive(module); 1767GC.KeepAlive(this); 1785GC.KeepAlive(methodHandle); 1917GC.KeepAlive(methodInstantiation); 1971GC.KeepAlive(field); 3295GC.KeepAlive(this); 3379GC.KeepAlive(this); // Ensure TypeHandle remains alive. 3409GC.KeepAlive(this); 3421GC.KeepAlive(this); 3437GC.KeepAlive(this); 3451GC.KeepAlive(this); 3463GC.KeepAlive(this); 3475GC.KeepAlive(this); 3485GC.KeepAlive(this); 3496GC.KeepAlive(this); 3508GC.KeepAlive(this); 3520GC.KeepAlive(this); 3542GC.KeepAlive(module); 3673GC.KeepAlive(this); 3681GC.KeepAlive(this);
src\System\RuntimeType.CreateUninitializedCache.CoreCLR.cs (1)
51GC.KeepAlive(rt);
src\System\StubHelpers.cs (1)
1283GC.KeepAlive(m_obj);
src\System\Threading\Thread.CoreCLR.cs (5)
183GC.KeepAlive(this); 206GC.KeepAlive(this); 217GC.KeepAlive(this); 292GC.KeepAlive(this); 391GC.KeepAlive(this);
System.Private.Windows.Core (30)
Windows\Win32\Foundation\HandleRef.cs (1)
15/// <see cref="GC.KeepAlive(object?)"/> on the <see cref="Wrapper"/> <see langword="object"/>.
Windows\Win32\PInvokeCore.BitBlt.cs (2)
30GC.KeepAlive(hdc.Wrapper); 56GC.KeepAlive(hdcSrc.Wrapper);
Windows\Win32\PInvokeCore.CallWindowProc.cs (1)
18GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.CopyImage.cs (2)
13GC.KeepAlive(hImage.Wrapper); 22GC.KeepAlive(hImage.Wrapper);
Windows\Win32\PInvokeCore.DragAcceptFiles.cs (1)
12GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.DrawIcon.cs (1)
16GC.KeepAlive(hIcon.Wrapper);
Windows\Win32\PInvokeCore.DrawIconEx.cs (1)
26GC.KeepAlive(hIcon.Wrapper);
Windows\Win32\PInvokeCore.EnumChildWindows.cs (1)
27GC.KeepAlive(hwndParent.Wrapper);
Windows\Win32\PInvokeCore.GetClientRect.cs (1)
13GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.GetIconInfo.cs (1)
13GC.KeepAlive(icon.Wrapper);
Windows\Win32\PInvokeCore.GetWindowLong.cs (1)
33GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.GetWindowRect.cs (1)
12GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.GetWindowText.cs (1)
65GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.GetWindowTextLength.cs (1)
12GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.GetWindowThreadProcessId.cs (1)
15GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.MapWindowPoints.cs (4)
18GC.KeepAlive(hWndFrom.Wrapper); 19GC.KeepAlive(hWndTo.Wrapper); 32GC.KeepAlive(hWndFrom.Wrapper); 33GC.KeepAlive(hWndTo.Wrapper);
Windows\Win32\PInvokeCore.PeekMessage.cs (1)
18GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.PostMessage.cs (1)
17GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.RegisterDragDrop.cs (1)
22GC.KeepAlive(hwnd.Wrapper);
Windows\Win32\PInvokeCore.RevokeDragDrop.cs (1)
12GC.KeepAlive(hwnd.Wrapper);
Windows\Win32\PInvokeCore.SendMessage.cs (2)
16GC.KeepAlive(hWnd.Wrapper); 28GC.KeepAlive(wParam.Wrapper);
Windows\Win32\PInvokeCore.SetWindowLong.cs (3)
22GC.KeepAlive(hWnd.Wrapper); 31GC.KeepAlive(newValue.Wrapper); 40GC.KeepAlive(dwNewLong);
System.Private.Windows.GdiPlus (1)
System\Drawing\IIconExtensions.cs (1)
29GC.KeepAlive(icon);
System.Reflection.Metadata (1)
System\Reflection\Internal\MemoryBlocks\AbstractMemoryBlock.cs (1)
44GC.KeepAlive(this);
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\OpenSslExportProvider.cs (1)
93GC.KeepAlive(cert); // ensure cert's safe handle isn't finalized while raw handle is in use
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\PkcsHelpers.cs (1)
148GC.KeepAlive(originalCert);
System.Windows.Forms (25)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
2771GC.KeepAlive(this);
System\Windows\Forms\ActiveX\AxHost.cs (1)
3219GC.KeepAlive(this);
System\Windows\Forms\Application.cs (1)
1138GC.KeepAlive(handle);
System\Windows\Forms\Control.cs (2)
9277GC.KeepAlive(this); 12573GC.KeepAlive(this);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
3231GC.KeepAlive(this); 3371GC.KeepAlive(this);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5731GC.KeepAlive(this);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1512GC.KeepAlive(this);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
4915GC.KeepAlive(this);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
704GC.KeepAlive(ParentInternal);
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1632GC.KeepAlive(toolTip);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3580GC.KeepAlive(ItemHdcInfo);
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
106GC.KeepAlive(Parent);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
261GC.KeepAlive(ownerHwnd.Wrapper);
System\Windows\Forms\Form.cs (5)
2951GC.KeepAlive(this); 3433GC.KeepAlive(_ctlClient); 3662GC.KeepAlive(ownerHandle.Wrapper); 4910GC.KeepAlive(this); 5712GC.KeepAlive(ownerHwnd.Wrapper);
System\Windows\Forms\Help\Help.cs (1)
218GC.KeepAlive(handle.Wrapper);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1480GC.KeepAlive(this);
System\Windows\Forms\MDI\MDIClient.cs (1)
272GC.KeepAlive(child);
System\Windows\Forms\StringSource.cs (1)
53GC.KeepAlive(edit.Wrapper);
System\Windows\Forms\Timer.cs (1)
315GC.KeepAlive(this);
System.Windows.Forms.Primitives (1)
Windows\Win32\UI\Controls\ToolInfoWrapper.cs (1)
48GC.KeepAlive(_handle);
UIAutomationClient (7)
MS\Internal\Automation\UiaCoreApi.cs (7)
363GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 375GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 387GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 429GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 446GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 447GC.KeepAlive(findCondition); 587GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call
VBCSCompiler.UnitTests (2)
CompilerServerTests.cs (2)
845GC.KeepAlive(rootDirectory); 959GC.KeepAlive(rootDirectory);
WinFormsControlsTest (1)
ScalingBeforeChanges.cs (1)
52GC.KeepAlive(this);