[前][次][番号順一覧][スレッド一覧]

ruby-changes:55371

From: tenderlove <ko1@a...>
Date: Wed, 17 Apr 2019 13:05:33 +0900 (JST)
Subject: [ruby-changes:55371] tenderlove:r67579 (trunk): call verification method in addition to compaction

tenderlove	2019-04-17 13:05:29 +0900 (Wed, 17 Apr 2019)

  New Revision: 67579

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67579

  Log:
    call verification method in addition to compaction

  Modified files:
    trunk/test/ruby/test_gc_compact.rb
Index: test/ruby/test_gc_compact.rb
===================================================================
--- test/ruby/test_gc_compact.rb	(revision 67578)
+++ test/ruby/test_gc_compact.rb	(revision 67579)
@@ -48,7 +48,7 @@ class TestGCCompact < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc_compact.rb#L48
     # 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::TestCa https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc_compact.rb#L84
     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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]