aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--gc.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a81087e288..c6d90c414f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* eval.c (ruby_cleanup): free current VM and its objspace even
diff --git a/gc.c b/gc.c
index d7aa3404a1..c9249f11bb 100644
--- a/gc.c
+++ b/gc.c
@@ -405,7 +405,6 @@ rb_objspace_alloc(void)
void
rb_objspace_free(rb_objspace_t *objspace)
{
- rb_objspace_call_finalizer(objspace);
if (objspace->profile.record) {
free(objspace->profile.record);
objspace->profile.record = 0;