1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

call verification method in addition to compaction

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tenderlove 2019-04-17 04:05:29 +00:00
parent c54f9a5b10
commit dbc9f43cb3

View file

@ -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)