A Day in the Life of a Ruby Object
summary
Creates one billion objects (40 bytes each) on a 16 GB machine and shows it completes because C Ruby’s GC reclaims unreferenced slots, with GC.stat reporting ~50,000 collections and only four major runs. Explains Heap layout: ~16 KB pages with ~409 fixed 40‑byte slots, ObjectSpace.dump to inspect addresses and age flags, generational GC (object becomes old after three minor collections), and GC.compact / auto‑compaction added in Ruby 3 to defragment pages.
AI-written summary · about
chapters (5)
- 0:00Start
- 4:20Conceptualize GC related issues
- 8:25Operating System Heap
- 17:14What is a root RVALUE?
- 35:04Recap








