* gc.c (rb_objspace_free): finalizers should be called separately
from freeing objspace. [ruby-dev:42479] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a2c4b890be
commit
5eced07cd7
@ -1,3 +1,8 @@
|
|||||||
|
Sun Oct 31 22:32:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* gc.c (rb_objspace_free): finalizers should be called separately
|
||||||
|
from freeing objspace. [ruby-dev:42479]
|
||||||
|
|
||||||
Sun Oct 31 22:24:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Oct 31 22:24:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (ruby_cleanup): free current VM and its objspace even
|
* eval.c (ruby_cleanup): free current VM and its objspace even
|
||||||
|
1
gc.c
1
gc.c
@ -405,7 +405,6 @@ rb_objspace_alloc(void)
|
|||||||
void
|
void
|
||||||
rb_objspace_free(rb_objspace_t *objspace)
|
rb_objspace_free(rb_objspace_t *objspace)
|
||||||
{
|
{
|
||||||
rb_objspace_call_finalizer(objspace);
|
|
||||||
if (objspace->profile.record) {
|
if (objspace->profile.record) {
|
||||||
free(objspace->profile.record);
|
free(objspace->profile.record);
|
||||||
objspace->profile.record = 0;
|
objspace->profile.record = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user