Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/ruby/library/weakref/fixtures/classes.rb
Original file line number Diff line number Diff line change
@@ -15,7 +15,8 @@ def self.make_dead_weakref
weak = nil
10_000.times do
weaks << make_weakref
10.times { GC.start }
GC.start
GC.start
break if weak = weaks.find { |w| !w.weakref_alive? }
end
weak

0 comments on commit 07ec1a8

Please sign in to comment.