IGCHost Interface

 

Provides methods for obtaining information about the garbage collection system and for controlling some aspects of garbage collection.

System_CAPS_noteNote

Starting with the .NET Framework 4.5, you can use the IGCHost2::SetGCStartupLimitsEx method to set the size of a garbage collection segment and the maximum size of the garbage collection system's generation 0 to values greater than the DWORD limit that is imposed by the SetGCStartupLimits method.

System_CAPS_noteNote

This interface is for expert usage only. It can affect the performance of an application if used improperly.

Method

Description

IGCHost::Collect Method

Forces a collection to occur for the given generation, regardless of the state of the current garbage collection.

IGCHost::GetStats Method

Gets the statistics for the current state of the garbage collection system.

IGCHost::GetThreadStats Method

Gets the per-thread statistics for garbage collection.

IGCHost::SetGCStartupLimits Method

Sets the segment size and the maximum size for generation 0.

IGCHost::SetVirtualMemLimit Method

Sets the maximum size of the runtime's virtual memory.

Platforms: See .NET Framework System Requirements.

Header: GCHost.idl, GCHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: Available since 2.0

Show: