C# Class System.GC

Show file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
Collect ( ) : void
Collect ( int generation ) : void
GetGeneration ( WeakReference wo ) : int
GetTotalMemory ( bool forceFullCollection ) : long
ReRegisterForFinalize ( Object obj ) : void

Private Methods

Method Description
AddMemoryPressure ( long bytesAllocated ) : void
CollectionCount ( int generation ) : int
FireCacheEvent ( ) : void
GetGeneration ( Object obj ) : int
GetGenerationWR ( IntPtr handle ) : int
KeepAlive ( Object obj ) : void
RemoveMemoryPressure ( long bytesAllocated ) : void
SetCleanupCache ( ) : void
SuppressFinalize ( Object obj ) : void
WaitForPendingFinalizers ( ) : void
nativeAddMemoryPressure ( System.UInt64 bytesAllocated ) : void
nativeCollectGeneration ( int generation ) : void
nativeCollectionCount ( int generation ) : int
nativeGetMaxGeneration ( ) : int
nativeGetTotalMemory ( ) : long
nativeIsServerGC ( ) : bool
nativeReRegisterForFinalize ( Object o ) : void
nativeRemoveMemoryPressure ( System.UInt64 bytesAllocated ) : void
nativeSuppressFinalize ( Object o ) : void

Method Details

Collect() public static method

public static Collect ( ) : void
return void

Collect() public static method

public static Collect ( int generation ) : void
generation int
return void

GetGeneration() public static method

public static GetGeneration ( WeakReference wo ) : int
wo WeakReference
return int

GetTotalMemory() public static method

public static GetTotalMemory ( bool forceFullCollection ) : long
forceFullCollection bool
return long

ReRegisterForFinalize() public static method

public static ReRegisterForFinalize ( Object obj ) : void
obj Object
return void