Garbage collector in Ruby on Rails?
问题 I have tried to Google a lot about Rails Garbage collector, but I didn't get a reliable answer. Has anyone got a source to show how garbage collection is implemented in Rails? How can we control it? 回答1: Rails is a framework, not a language. The language behind Rails is called Ruby. This means there is no notion of Garbage Collector in Rails. You should search for documentation about the Ruby Garbage Collector. You can start from the Ruby GC module. The GC module provides an interface to Ruby