IGCHost Interface
Provides methods for obtaining information about the garbage collection system and for controlling some aspects of garbage collection.
Note
This interface is for expert usage only. It can affect the performance of an application if used improperly.
Methods
Method |
Description |
---|---|
Forces a collection to occur for the given generation, regardless of the state of the current garbage collection. |
|
Gets the statistics for the current state of the garbage collection system. |
|
Gets the per-thread statistics for garbage collection. |
|
Sets the segment size and the maximum size for generation 0. |
|
Sets the maximum size of the runtime's virtual memory. |
Requirements
Platforms: See .NET Framework System Requirements.
Header: GCHost.idl, GCHost.h
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0