KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Garbage collection involves walking through a list of allocated objects (either all objects or objects in a particular generation) and determining which are reachable. How is this list maintained? Do runtimes for GC languages keep a giant list of all objects? Also, from what I understand, GC involves walking the call stack to look for object references - how does the algorithm distinguish between GC-able pointers and primitive data?
Tags (comma-separated)
Save Edits
Cancel