Writing a custom, real-world .NET GC
summary
Shows how to replace .NET Core’s GC via the Local GC hook and build a working allocator and simple collector, using a tiny IGCHeap implementation (≈75 methods) and a GitHub project. Starts with a zero‑GC (alloc-only) using VirtualAlloc, moves to a bump‑pointer allocator with 16 MB segments, and a fixed handle table (~65k entries). Runs against a locally built coreclr debug runtime and a self‑contained app. Allocation, suspend/resume, root and handle scanning work; object reference traversal via GC metadata remains the hardest undocumented task.
AI-written summary · about








