GC Methods

 

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddMemoryPressure(Int64)

Informs the runtime of a large allocation of unmanaged memory that should be taken into account when scheduling garbage collection.

System_CAPS_pubmethodSystem_CAPS_staticCancelFullGCNotification()

Cancels the registration of a garbage collection notification.

System_CAPS_pubmethodSystem_CAPS_staticCollect()

Forces an immediate garbage collection of all generations.

System_CAPS_pubmethodSystem_CAPS_staticCollect(Int32)

Forces an immediate garbage collection from generation 0 through a specified generation.

System_CAPS_pubmethodSystem_CAPS_staticCollect(Int32, GCCollectionMode)

Forces a garbage collection from generation 0 through a specified generation, at a time specified by a GCCollectionMode value.

System_CAPS_pubmethodSystem_CAPS_staticCollect(Int32, GCCollectionMode, Boolean)

Forces a garbage collection from generation 0 through a specified generation, at a time specified by a GCCollectionMode value, with a value specifying whether the collection should be blocking.

System_CAPS_pubmethodSystem_CAPS_staticCollect(Int32, GCCollectionMode, Boolean, Boolean)

Forces a garbage collection from generation 0 through a specified generation, at a time specified by a GCCollectionMode value, with values that specify whether the collection should be blocking and compacting.

System_CAPS_pubmethodSystem_CAPS_staticCollectionCount(Int32)

Returns the number of times garbage collection has occurred for the specified generation of objects.

System_CAPS_pubmethodSystem_CAPS_staticEndNoGCRegion()

Ends the no GC region latency mode.

System_CAPS_pubmethodSystem_CAPS_staticGetGeneration(Object)

Returns the current generation number of the specified object.

System_CAPS_pubmethodSystem_CAPS_staticGetGeneration(WeakReference)

Returns the current generation number of the target of a specified weak reference.

System_CAPS_pubmethodSystem_CAPS_staticGetTotalMemory(Boolean)

Retrieves the number of bytes currently thought to be allocated. A parameter indicates whether this method can wait a short interval before returning, to allow the system to collect garbage and finalize objects.

System_CAPS_pubmethodSystem_CAPS_staticKeepAlive(Object)

References the specified object, which makes it ineligible for garbage collection from the start of the current routine to the point where this method is called.

System_CAPS_pubmethodSystem_CAPS_staticRegisterForFullGCNotification(Int32, Int32)

Specifies that a garbage collection notification should be raised when conditions favor full garbage collection and when the collection has been completed.

System_CAPS_pubmethodSystem_CAPS_staticRemoveMemoryPressure(Int64)

Informs the runtime that unmanaged memory has been released and no longer needs to be taken into account when scheduling garbage collection.

System_CAPS_pubmethodSystem_CAPS_staticReRegisterForFinalize(Object)

Requests that the system call the finalizer for the specified object for which SuppressFinalize has previously been called.

System_CAPS_pubmethodSystem_CAPS_staticSuppressFinalize(Object)

Requests that the common language runtime not call the finalizer for the specified object.

System_CAPS_pubmethodSystem_CAPS_staticTryStartNoGCRegion(Int64)

Attempts to disallow garbage collection during the execution of a critical path if a specified amount of memory is available.

System_CAPS_pubmethodSystem_CAPS_staticTryStartNoGCRegion(Int64, Boolean)

Attempts to disallow garbage collection during the execution of a critical path if a specified amount of memory is available, and controls whether the garbage collector does a full blocking garbage collection if not enough memory is initially available.

System_CAPS_pubmethodSystem_CAPS_staticTryStartNoGCRegion(Int64, Int64)

Attempts to disallow garbage collection during the execution of a critical path if a specified amount of memory is available for the large object heap and the small object heap.

System_CAPS_pubmethodSystem_CAPS_staticTryStartNoGCRegion(Int64, Int64, Boolean)

Attempts to disallow garbage collection during the execution of a critical path if a specified amount of memory is available for the large object heap and the small object heap, and controls whether the garbage collector does a full blocking garbage collection if not enough memory is initially available.

System_CAPS_pubmethodSystem_CAPS_staticWaitForFullGCApproach()

Returns the status of a registered notification for determining whether a full, blocking garbage collection by the common language runtime is imminent.

System_CAPS_pubmethodSystem_CAPS_staticWaitForFullGCApproach(Int32)

Returns, in a specified time-out period, the status of a registered notification for determining whether a full, blocking garbage collection by the common language runtime is imminent.

System_CAPS_pubmethodSystem_CAPS_staticWaitForFullGCComplete()

Returns the status of a registered notification for determining whether a full, blocking garbage collection by the common language runtime has completed.

System_CAPS_pubmethodSystem_CAPS_staticWaitForFullGCComplete(Int32)

Returns, in a specified time-out period, the status of a registered notification for determining whether a full, blocking garbage collection by common language the runtime has completed.

System_CAPS_pubmethodSystem_CAPS_staticWaitForPendingFinalizers()

Suspends the current thread until the thread that is processing the queue of finalizers has emptied that queue.

Return to top
Show: