CRuby GC
- Kurt Stephens
- Enova Financial
- 2012/02/10
- Code: http://github.com/kstephens/ruby_gc_simulator
- Slides: http://kurtstephens.com/pub/ruby/ruby_gc_simulator/slides/
x = [ 0, 1, "two", "three", :four, 3.14159, 123456781234567812345678 ]
y = { :a => 1, :b => "bee" }
x << y
str = "Another String"
rq = RefQueue.new
wr = rq.add!(WeakRef.new(str))
x << str; str = nil