* 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:
parent
a5fd4c45e3
commit
7ad125d7d2
@ -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>
|
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.
|
* test/ruby/test_gc.rb: allocate more objects to invoke GC by newobj.
|
||||||
|
2
gc.c
2
gc.c
@ -929,8 +929,6 @@ static void heap_page_free(rb_objspace_t *objspace, struct heap_page *page);
|
|||||||
void
|
void
|
||||||
rb_objspace_free(rb_objspace_t *objspace)
|
rb_objspace_free(rb_objspace_t *objspace)
|
||||||
{
|
{
|
||||||
gc_rest_sweep(objspace);
|
|
||||||
|
|
||||||
if (objspace->profile.records) {
|
if (objspace->profile.records) {
|
||||||
free(objspace->profile.records);
|
free(objspace->profile.records);
|
||||||
objspace->profile.records = 0;
|
objspace->profile.records = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user