即使垃圾收集已升级,我是否仍需要带有 Ruby 2.2 的 gctools?

Do I still need gctools with Ruby 2.2 even though its garbage collection has been upgraded?

我正在升级我的应用程序以使用 Ruby 2.2,并且打算删除 gctools,因为我认为它特别支持 Ruby 2.1 的垃圾收集。我有什么理由要保留它?

因此,经过进一步审查,根据 gctools 的维护者 Aman Gupta (tmm1) 的说法,似乎没有必要:

"oobgc is unnecessary in Ruby 2.2, since it includes an incremental GC (RIncGC) and will not pause the world for a long time."

因此,如果其他人看到此错误,

listen loop error: unknown key: old_object (ArgumentError)

尝试拉出 gctools。