System Namespace
Controls the system garbage collector, a service that automatically reclaims unused memory.
Visibility |
Name |
Parameters |
Return Type |
public static |
AddMemoryPressure |
(
Int64
bytesAllocated
)
|
Void
|
public static |
CancelFullGCNotification |
( )
|
Void
|
public static |
Collect |
(
Int32
generation
,
GCCollectionMode
mode
)
|
Void
|
public static |
Collect |
(
Int32
generation
,
GCCollectionMode
mode
,
Boolean
blocking
)
|
Void
|
public static |
Collect |
(
Int32
generation
,
GCCollectionMode
mode
,
Boolean
blocking
,
Boolean
compacting
)
|
Void
|
public static |
Collect |
(
Int32
generation
)
|
Void
|
public static |
Collect |
( )
|
Void
|
public static |
CollectionCount |
(
Int32
generation
)
|
Int32
|
public static |
EndNoGCRegion |
( )
|
Void
|
public static |
GetGeneration |
(
WeakReference
wo
)
|
Int32
|
public static |
GetGeneration |
(
Object
obj
)
|
Int32
|
public static |
GetTotalMemory |
(
Boolean
forceFullCollection
)
|
Int64
|
public static |
KeepAlive |
(
Object
obj
)
|
Void
|
public static |
RegisterForFullGCNotification |
(
Int32
maxGenerationThreshold
,
Int32
largeObjectHeapThreshold
)
|
Void
|
public static |
RemoveMemoryPressure |
(
Int64
bytesAllocated
)
|
Void
|
public static |
ReRegisterForFinalize |
(
Object
obj
)
|
Void
|
public static |
SuppressFinalize |
(
Object
obj
)
|
Void
|
public static |
TryStartNoGCRegion |
(
Int64
totalSize
,
Boolean
disallowFullBlockingGC
)
|
Boolean
|
public static |
TryStartNoGCRegion |
(
Int64
totalSize
,
Int64
lohSize
)
|
Boolean
|
public static |
TryStartNoGCRegion |
(
Int64
totalSize
)
|
Boolean
|
public static |
TryStartNoGCRegion |
(
Int64
totalSize
,
Int64
lohSize
,
Boolean
disallowFullBlockingGC
)
|
Boolean
|
public static |
WaitForFullGCApproach |
( )
|
GCNotificationStatus
|
public static |
WaitForFullGCApproach |
(
Int32
millisecondsTimeout
)
|
GCNotificationStatus
|
public static |
WaitForFullGCComplete |
( )
|
GCNotificationStatus
|
public static |
WaitForFullGCComplete |
(
Int32
millisecondsTimeout
)
|
GCNotificationStatus
|
public static |
WaitForPendingFinalizers |
( )
|
Void
|
|
Methods in this class influence when an object is garbage collected and when resources allocated by an object are released ( "finalized" ). Properties in this class provide information about the total amount of memory available in the system and the age category, or "generation", of memory allocated to an object.
|
|