Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
void Mark(objectRef o)
{
if (!InUseList.Exists(o))
{
InUseList.Add(o);
List refs = GetAllChildReferences(o);
foreach (objectRef childRef in refs)
{
Mark(childRef);
}
}
}
// 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