Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
void Collect()
{
List gcRoots = GetAllGCRoots();
foreach (objectRef root in gcRoots)
{
Mark(root);
}
Cleanup();
}
// source: Under the Hood of .NET Memory Management
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment