While playing with the GC in different ruby implementations i’ve got a
pretty odd situation with MRI GC.
here is the code i’ve used with the results -
If i understand correctly the both implementations(MRI and REE) uses the
same GC strategy - mark and sweep.
The problem is that the MRI is not deallocating objects after the
reference is removed.
I’m not certain is it a bug or I misunderstood some GC concepts.
PS: The allocations are confirmed with vmmap tool so it’s not an live
objects calculation problem.