Enum GcReason
Reason the CLR triggered a garbage collection. Values match GCStart_V2.Reason from the
Microsoft-Windows-DotNETRuntime EventSource — do not renumber.
public enum GcReason : byte
Fields
Empty = 3No specific reason recorded.
Induced = 1Explicitly induced (e.g.
GC.Collect()), blocking.InducedNotForced = 7Induced but not forced to be blocking (allows a background collection).
LargeObjectHeapAllocation = 4Large-object-heap allocation budget was exhausted.
LowMemory = 2The OS signalled low physical memory.
OutOfSpaceLargeObjectHeap = 6Out of space in the large object heap segment.
OutOfSpaceSmallObjectHeap = 5Out of space in the small object heap segment.
SmallObjectHeapAllocation = 0Small-object-heap allocation budget was exhausted — the most common cause.