Skip to content

Commit 07ec1a8

Browse files
committedDec 22, 2017
Revert "Allow more GC cycles for the reference to be vacated."
This reverts commit 96538a6.
1 parent 1eaf339 commit 07ec1a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎spec/ruby/library/weakref/fixtures/classes.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def self.make_dead_weakref
1515
weak = nil
1616
10_000.times do
1717
weaks << make_weakref
18-
10.times { GC.start }
18+
GC.start
19+
GC.start
1920
break if weak = weaks.find { |w| !w.weakref_alive? }
2021
end
2122
weak

0 commit comments

Comments
 (0)
Please sign in to comment.