Created
August 20, 2018 18:30
-
-
Save dsibinski/894cc10e61c3d6eca437e5690353b010 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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