From 5edf2664d04a776dddc0334453d9ec1b6cae535e Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Mon, 20 Nov 2023 14:29:49 +0100 Subject: [PATCH] Update GC.verify_compaction_references call --- test/test_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 5812417..051bc45 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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