
Written by Michał Piotrowski2025-03-15
Garbage collection theory – Reference counting
GC Theory Article
Reading Time: 9 minutesReference counting is one of its kind GC algorithm. I’ve covered it briefly in the introductory post about GC theory. In this article, we’ll dive into it deeper. Let’s go! How to deal with ref-counting deficiencies? There are two main problems with ref-counting algorithms. First, it has problems with cyclic objects, resulting in possible memory

Written by Michał Piotrowski2025-03-05
Garbage collection theory – Basic Algorithms
GC Theory Article
Reading Time: 5 minutesIn the world of garbage collection, there are three algorithms, that are the founding stone for all the other. In this article I will try to briefly introduce all of them – reference counting algorithm, mark-sweep and copying algorithm. More detailed articles about them will follow in the weeks to come. The reference counting algorithm