lib/remnant/gc.rb in remnant-0.4.10 vs lib/remnant/gc.rb in remnant-0.9.0

- old
+ new

@@ -28,17 +28,15 @@ def _gc Thread.current['remnant.gc'] ||= _gc_implementation end def _gc_implementation - if RUBY_VERSION >= '2.1.0' - Remnant::GC::Mri + if ::GC.respond_to?(:time) && ::GC.respond_to?(:collections) + Remnant::GC::Ree + elsif defined?(::GC::Profiler) + Remnant::GC::Profiler else - if ::GC.respond_to?(:time) && ::GC.respond_to?(:collections) - Remnant::GC::Ree - else - Remnant::GC::Base - end + Remnant::GC::Base end end end extend ClassMethods end