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

* gc.c (rb_objspace_free): should not rest_sweep() here.

Some data structures are already freed.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2014-06-03 10:17:18 +00:00
parent a5fd4c45e3
commit 7ad125d7d2
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Tue Jun 3 19:11:45 2014 Koichi Sasada <ko1@atdot.net>
* 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@atdot.net>
* test/ruby/test_gc.rb: allocate more objects to invoke GC by newobj.

2
gc.c
View file

@ -929,8 +929,6 @@ static void heap_page_free(rb_objspace_t *objspace, struct heap_page *page);
void
rb_objspace_free(rb_objspace_t *objspace)
{
gc_rest_sweep(objspace);
if (objspace->profile.records) {
free(objspace->profile.records);
objspace->profile.records = 0;