Ruby Class object garbage collection

后端 未结 4 1427
不思量自难忘°
不思量自难忘° 2021-01-07 17:22

In ruby all classes are objects of class Class. Since classes are also objects, does a Ruby VM follow the same Garbage Collection strategy for class objects? What determines

4条回答
  •  Happy的楠姐
    2021-01-07 18:01

    When there is nothing linking to the object, then it's safe to get rid of it. As far as -when- garbage collection is run, that is beyond my knowledge.

提交回复
热议问题