Skip to content

Commit

Permalink
Update GC.verify_compaction_references call
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Nov 20, 2023
1 parent 6fca5a1 commit 5edf266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
# This method was added in Ruby 3.0.0. Calling it this way asks the GC to
# move objects around, helping to find object movement bugs.
begin
GC.verify_compaction_references(double_heap: true, toward: :empty)
rescue NotImplementedError
GC.verify_compaction_references(expand_heap: true, toward: :empty)
rescue NotImplementedError, ArgumentError
# some platforms do not support GC compaction
end
end
Expand Down

0 comments on commit 5edf266

Please sign in to comment.