📝§ Garbage collection
- Shadow stack—can be used to track GC roots
- mprotect to implement a write barrier (GC)
- A generational GC can skip scanning an old generation if it is known to not contain references to newer generations
- Conservative GC can relocate objects if their pointer does not occur on stack
- GC only helps with memory but not other resources
- Debugging tips