← Back to context

Comment by DarkUranium

2 hours ago

Where could one find resources about implementing such GCs in their own language?

https://www.taylorfrancis.com/books/mono/10.1201/97810035953...

Note that this is a pretty new technology. The first production-quality "pauseless" moving collector for commodity hardware was released in 2010 by Azul, but it was proprietary. The first open source implementation (that was also generational) was in JDK 21 (https://openjdk.org/jeps/439), i.e. it's less than three years old. The book I linked to is by one of the primary designers of that GC (and one of the world's foremost experts on memory management).

ZGC does no work in stop-the-world pauses; no marking, no compacting, not even root scanning.

Of course, if your language targets the JVM, it will automatically get to enjoy that amazing GC.