GCLargeObjectHeapCompactionMode Enumeration

.NET Framework (current version)
 

[Supported in the .NET Framework 4.5.1 and later versions]

Indicates whether the next blocking garbage collection compacts the large object heap (LOH).

Namespace:   System.Runtime
Assembly:  mscorlib (in mscorlib.dll)

[SerializableAttribute]
public enum GCLargeObjectHeapCompactionMode

Member nameDescription
CompactOnce

The large object heap (LOH) will be compacted during the next blocking generation 2 garbage collection.

Default

The large object heap (LOH) is not compacted.

The value of the GCSettings.LargeObjectHeapCompactionMode property is a member of the GCLargeObjectHeapCompactionMode enumeration that indicates whether the next full blocking garbage collection also compacts the large object heap (LOH). By default, the LOH is not compacted. A value of CompactOnce indicates that the blocking garbage collection will compact the LOH. After the garbage collection, the value of the GCSettings.LargeObjectHeapCompactionMode property reverts to Default.

Universal Windows Platform
Available since 8.1
.NET Framework
Available since 4.5.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: