20,741
edits
m (→freeelem()) |
|||
| Line 392: | Line 392: | ||
= garbageCollect() = | = garbageCollect() = | ||
[[File:NasalGarbageCollectCallgraph.png|thumb|550px|Callgraph of garbageCollect()]] | |||
This is the function that does the mark/sweep part using mark() to recursively mark reachable objects, and reap() to collect unreachable objects. | This is the function that does the mark/sweep part using mark() to recursively mark reachable objects, and reap() to collect unreachable objects. | ||