ruby-changes:34259
From: ko1 <ko1@a...>
Date: Tue, 3 Jun 2014 19:17:22 +0900 (JST)
Subject: [ruby-changes:34259] ko1:r46340 (trunk): * gc.c (rb_objspace_free): should not rest_sweep() here.
ko1 2014-06-03 19:17:18 +0900 (Tue, 03 Jun 2014) New Revision: 46340 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46340 Log: * gc.c (rb_objspace_free): should not rest_sweep() here. Some data structures are already freed. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 46339) +++ ChangeLog (revision 46340) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Jun 3 19:11:45 2014 Koichi Sasada <ko1@a...> + + * gc.c (rb_objspace_free): should not rest_sweep() here. + Some data structures are already freed. + Tue Jun 3 18:43:51 2014 Koichi Sasada <ko1@a...> * test/ruby/test_gc.rb: allocate more objects to invoke GC by newobj. Index: gc.c =================================================================== --- gc.c (revision 46339) +++ gc.c (revision 46340) @@ -929,8 +929,6 @@ static void heap_page_free(rb_objspace_t https://github.com/ruby/ruby/blob/trunk/gc.c#L929 void rb_objspace_free(rb_objspace_t *objspace) { - gc_rest_sweep(objspace); - if (objspace->profile.records) { free(objspace->profile.records); objspace->profile.records = 0; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/