mscorlib(4.0.0.0) API with additions
System.Runtime Namespace Reference

Classes

class  AssemblyTargetedPatchBandAttribute
 Specifies patch band information for targeted patching of the .NET Framework. More...
 
class  GCSettings
 Specifies the garbage collection settings for the current process. More...
 
class  MemoryFailPoint
 Checks for sufficient memory resources before executing an operation. This class cannot be inherited. More...
 
class  ProfileOptimization
 Improves the startup performance of application domains in applications that require the just-in-time (JIT) compiler by performing background compilation of methods that are likely to be executed, based on profiles created during previous compilations. More...
 
class  TargetedPatchingOptOutAttribute
 Indicates that the .NET Framework class library method to which this attribute is applied is unlikely to be affected by servicing releases, and therefore is eligible to be inlined across Native Image Generator (NGen) images. More...
 

Enumerations

enum  GCLargeObjectHeapCompactionMode { GCLargeObjectHeapCompactionMode.Default = 1, GCLargeObjectHeapCompactionMode.CompactOnce }
 [Supported in the .NET Framework 4.5.1 and later versions] Indicates whether the next blocking garbage collection compacts the large object heap (LOH). More...
 
enum  GCLatencyMode {
  GCLatencyMode.Batch, GCLatencyMode.Interactive, GCLatencyMode.LowLatency, GCLatencyMode.SustainedLowLatency,
  GCLatencyMode.NoGCRegion
}
 Adjusts the time that the garbage collector intrudes in your application. More...
 

Enumeration Type Documentation

◆ GCLargeObjectHeapCompactionMode

[Supported in the .NET Framework 4.5.1 and later versions] Indicates whether the next blocking garbage collection compacts the large object heap (LOH).

Enumerator
Default 

The large object heap (LOH) is not compacted.

CompactOnce 

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

Definition at line 6 of file GCLargeObjectHeapCompactionMode.cs.

◆ GCLatencyMode

Adjusts the time that the garbage collector intrudes in your application.

Enumerator
Batch 

Disables garbage collection concurrency and reclaims objects in a batch call. This is the most intrusive mode.

Interactive 

Enables garbage collection concurrency and reclaims objects while the application is running. This is the default mode for garbage collection on a workstation and is less intrusive than F:System.Runtime.GCLatencyMode.Batch. It balances responsiveness with throughput.

LowLatency 

Enables garbage collection that is more conservative in reclaiming objects. Full collections occur only if the system is under memory pressure, whereas generation 0 and generation 1 collections might occur more frequently

SustainedLowLatency 

Enables garbage collection that tries to minimize latency over an extended period. The collector tries to perform only generation 0, generation 1, and concurrent generation 2 collections. Full blocking collections may still occur if the system is under memory pressure.

NoGCRegion 

Indicates that garbage collection is suspended while the app is executing a critical path.

F:System.Runtime.GCLatencyMode.NoGCRegion is a read-only value; that is, you cannot assign the F:System.Runtime.GCLatencyMode.NoGCRegion value to the P:System.Runtime.GCSettings.LatencyMode property. You specify the no GC region latency mode by calling the Overload:System.GC.TryStartNoGCRegion method and terminate it by calling the M:System.GC.EndNoGCRegion method.

Definition at line 6 of file GCLatencyMode.cs.