module ObjectSpace
  @thread = Thread.new do
    loop do
      Rubinius::ON_GC.receive
      ObjectSpace.run_finalizers
    end
  end
end

module ObjectSpace
  # HACK disable finalizers
  #@thread = Thread.new do
  #  loop do
  #    Rubinius::ON_GC.receive
  #    ObjectSpace.run_finalizers
  #  end
  #end
end

Disable finalizers because threads don't work yet
Disable finalizers because threads don't work yet
