summaryrefslogtreecommitdiff
path: root/test/ruby/test_gc_compact.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-17 04:05:29 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-17 04:05:29 +0000
commitdbc9f43cb38acc037b152949a9f7b98362a6dcac (patch)
treec5d451d27e56ae08b9e00213314ef4ed06dcbb3b /test/ruby/test_gc_compact.rb
parentc54f9a5b101e709e98bc8306643feaddc8a3d934 (diff)
call verification method in addition to compaction
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_gc_compact.rb')
-rw-r--r--test/ruby/test_gc_compact.rb4
1 files changed, 2 insertions, 2 deletions
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)