GCLargeObjectHeapCompactionMode GCLargeObjectHeapCompactionMode GCLargeObjectHeapCompactionMode GCLargeObjectHeapCompactionMode Enum

定义

指示下一个阻塞垃圾回收是否压缩大型对象堆 (LOH)。Indicates whether the next blocking garbage collection compacts the large object heap (LOH).

public enum class GCLargeObjectHeapCompactionMode
[System.Serializable]
public enum GCLargeObjectHeapCompactionMode
type GCLargeObjectHeapCompactionMode = 
Public Enum GCLargeObjectHeapCompactionMode
继承
GCLargeObjectHeapCompactionModeGCLargeObjectHeapCompactionModeGCLargeObjectHeapCompactionModeGCLargeObjectHeapCompactionMode
属性

字段

CompactOnce CompactOnce CompactOnce CompactOnce 2

下一次阻止第 2 代垃圾回收期间将压缩大型对象堆 (LOH)。The large object heap (LOH) will be compacted during the next blocking generation 2 garbage collection.

Default Default Default Default 1

不压缩大型对象堆 (LOH)。The large object heap (LOH) is not compacted.

注解

GCSettings.LargeObjectHeapCompactionMode属性的值是GCLargeObjectHeapCompactionMode枚举的成员, 该枚举指示下一个完全阻止性垃圾回收是否还压缩大型对象堆 (LOH)。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). 默认情况下, LOH 不会压缩。By default, the LOH is not compacted. 值 Gclargeobjectheapcompactionmode.compactonce 来压缩指示阻止垃圾回收将压缩 LOH。A value of CompactOnce indicates that the blocking garbage collection will compact the LOH. 垃圾回收后, GCSettings.LargeObjectHeapCompactionMode属性的值将恢复为默认值。After the garbage collection, the value of the GCSettings.LargeObjectHeapCompactionMode property reverts to Default.

适用于

另请参阅