Re:Writing a Simple Garbage Collector in C
by eru on Sunday December 15, 2019 @09:00AM
(#21796245)
In C that's hard to to do in general, because people do pointer arithmetic, and they sometimes abuse that pointers often come aligned (eg 3 byte aligned), so they re-use the extra two bits for various flags and mask them out before de-referencing.
But compare https://news.ycombinator.com/item?id=19182779