[前][次][番号順一覧][スレッド一覧]

ruby-changes:17645

From: nobu <ko1@a...>
Date: Sun, 31 Oct 2010 22:32:21 +0900 (JST)
Subject: [ruby-changes:17645] Ruby:r29653 (trunk): * gc.c (rb_objspace_free): finalizers should be called separately

nobu	2010-10-31 22:32:13 +0900 (Sun, 31 Oct 2010)

  New Revision: 29653

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29653

  Log:
    * gc.c (rb_objspace_free): finalizers should be called separately
      from freeing objspace.  [ruby-dev:42479]

  Modified files:
    trunk/ChangeLog
    trunk/gc.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29652)
+++ ChangeLog	(revision 29653)
@@ -1,3 +1,8 @@
+Sun Oct 31 22:32:08 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@r...>
 
 	* eval.c (ruby_cleanup): free current VM and its objspace even
Index: gc.c
===================================================================
--- gc.c	(revision 29652)
+++ gc.c	(revision 29653)
@@ -405,7 +405,6 @@
 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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]