Writing a .NET Garbage Collector in C# - Part 2 by Kevin Gosse.
https://minidump.net/writing-a-net-gc-in-c-part-2/
#dotnet #csharp #programming #garbagecollector
Writing a .NET Garbage Collect...
Writing a .NET Garbage Collect...
Writing a .NET Garbage Collector in C# - Part 2
In the first part, we prepared the project and fixed an initialization issue caused by the NativeAOT toolchain. In this second part, we’re going to start the implementation of our GC. The target for now is to build the simplest possible GC that can run basic .NET applications. This GC will only allocate memory and never free it, similar to Konrad Kokosa’s bump-pointer GC. The first step is to write the native interfaces we’re going to need.