The algorithm begins with a 'mark' phase, identifying all reachable objects from root references, followed by a 'sweep' phase that deallocates all unmarked, unreachable objects.
Open the full topic