Edit

Share via


GCMemoryInfo.Compacted Property

Definition

Gets a value that indicates if this is a compacting GC or not.

C#
public bool Compacted { get; }

Property Value

true if this is a compacting GC; false otherwise.

Remarks

A compacting GC is when space occupied by dead objects is reclaimed and surviving objects are compacted.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9