▲ | kragen 5 days ago | |||||||
That works if you use a copying garbage collector, but not a non-moving collector like FUGC. | ||||||||
▲ | thomasmg 5 days ago | parent [-] | |||||||
OK, I did not read the source code of the FUGC, but the article mentions "FUGC relies on a sweeping algorithm based on bitvector SIMD." So, assuming there is just one bit per block of memory, then there is no need to visit the memory of the dead objects in the sweep phase. The bit of the dead object is zero, and so that memory block is considered free and available for reallocation. There is no need to visit the free block. | ||||||||
|