Peter Zhu is writing a great series about C extensions: A Rubyist's Walk Along the C-Side. It is definitely worth a read if you're interested in learning more here. — 15: 227-229
If you're interested, Alan Wu wrote a blog post about a missing write barrier (now fixed) on Hash#transform_values! which elaborates on the necessity of write barriers. — 23: 349-350