We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e2caa90 + 68dfd56 commit f151e01Copy full SHA for f151e01
spec/rspec/core/example_spec.rb
@@ -443,7 +443,9 @@ def assert(val)
443
444
context 'memory leaks, see GH-321, GH-1921' do
445
def self.reliable_gc
446
- 0 != GC.method(:start).arity # older Rubies don't give us options to ensure a full GC
+ # older Rubies don't give us options to ensure a full GC
447
+ # TruffleRuby GC.start arity matches but GC.disable and GC.enable are mock implementations
448
+ 0 != GC.method(:start).arity && !(defined?(RUBY_ENGINE) && RUBY_ENGINE == "truffleruby")
449
end
450
451
def expect_gc(opts)
0 commit comments