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

ruby-changes:10277

From: yugui <ko1@a...>
Date: Wed, 28 Jan 2009 18:22:34 +0900 (JST)
Subject: [ruby-changes:10277] Ruby:r21821 (ruby_1_9_1): merges the 2/2 of r21727 from trunk into ruby_1_9_1.

yugui	2009-01-28 18:21:18 +0900 (Wed, 28 Jan 2009)

  New Revision: 21821

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

  Log:
    merges the 2/2 of r21727 from trunk into ruby_1_9_1.
    * gc.c (define_final): freezes or hides internal values.

  Modified files:
    branches/ruby_1_9_1/ChangeLog
    branches/ruby_1_9_1/gc.c

Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 21820)
+++ ruby_1_9_1/ChangeLog	(revision 21821)
@@ -3,6 +3,8 @@
 	* gc.c (define_final): cannot define finalizer for immediate
 	  values.  [ruby-core:21500]
 
+	* gc.c (define_final): freezes or hides internal values.
+
 Thu Jan 22 11:33:08 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* thread.c (rb_time_timeval): made a real prototype.  a patch from
Index: ruby_1_9_1/gc.c
===================================================================
--- ruby_1_9_1/gc.c	(revision 21820)
+++ ruby_1_9_1/gc.c	(revision 21821)
@@ -2306,7 +2306,9 @@
 	rb_ary_push(table, block);
     }
     else {
-	st_add_direct(finalizer_table, obj, rb_ary_new3(1, block));
+	table = rb_ary_new3(1, block);
+	RBASIC(table)->klass = 0;
+	st_add_direct(finalizer_table, obj, table);
     }
     return block;
 }

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

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