From dbc9f43cb38acc037b152949a9f7b98362a6dcac Mon Sep 17 00:00:00 2001 From: tenderlove Date: Wed, 17 Apr 2019 04:05:29 +0000 Subject: call verification method in addition to compaction git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc_compact.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby/test_gc_compact.rb') diff --git a/test/ruby/test_gc_compact.rb b/test/ruby/test_gc_compact.rb index cbf7aaa68a..a854fc5c00 100644 --- a/test/ruby/test_gc_compact.rb +++ b/test/ruby/test_gc_compact.rb @@ -48,7 +48,7 @@ class TestGCCompact < Test::Unit::TestCase # All object ids should be equal assert_equal 0, assert_object_ids(list_of_objects) # should be 0 - GC.compact + GC.verify_compaction_references # Some should have moved id_count = assert_object_ids(list_of_objects) @@ -84,7 +84,7 @@ class TestGCCompact < Test::Unit::TestCase ids = list_of_objects.map(&:object_id) addresses = list_of_objects.map(&self.:memory_location) - GC.compact + GC.verify_compaction_references new_tenants = 10.times.map { find_object_in_recycled_slot(addresses) -- cgit v1.2.3