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

ruby-changes:10395

From: shyouhei <ko1@a...>
Date: Mon, 2 Feb 2009 11:34:21 +0900 (JST)
Subject: [ruby-changes:10395] Ruby:r21939 (ruby_1_8_6): merge revision(s) 19710:

shyouhei	2009-02-02 11:34:12 +0900 (Mon, 02 Feb 2009)

  New Revision: 21939

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

  Log:
    merge revision(s) 19710:
    * variable.c (autoload_delete, autoload_file): should not delete
      autoload table, since it may be shared with duplicated modules.
      [ruby-core:19181]

  Modified files:
    branches/ruby_1_8_6/ChangeLog
    branches/ruby_1_8_6/variable.c
    branches/ruby_1_8_6/version.h

Index: ruby_1_8_6/ChangeLog
===================================================================
--- ruby_1_8_6/ChangeLog	(revision 21938)
+++ ruby_1_8_6/ChangeLog	(revision 21939)
@@ -1,3 +1,9 @@
+Mon Feb  2 11:33:26 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* variable.c (autoload_delete, autoload_file): should not delete
+	  autoload table, since it may be shared with duplicated modules.
+	  [ruby-core:19181]
+
 Thu Jan 29 11:53:14 2009  Tadayoshi Funaba  <tadf@d...>
 
 	* lib/date.rb (today,now): should produce own instances.
Index: ruby_1_8_6/variable.c
===================================================================
--- ruby_1_8_6/variable.c	(revision 21938)
+++ ruby_1_8_6/variable.c	(revision 21939)
@@ -1325,12 +1325,8 @@
 	st_delete(tbl, (st_data_t*)&id, &load);
 
 	if (tbl->num_entries == 0) {
-	    DATA_PTR(val) = 0;
-	    st_free_table(tbl);
 	    id = autoload;
-	    if (st_delete(RCLASS(mod)->iv_tbl, (st_data_t*)&id, &val)) {
-		rb_gc_force_recycle(val);
-	    }
+	    st_delete(RCLASS(mod)->iv_tbl, (st_data_t*)&id, &val);
 	}
     }
 
@@ -1376,12 +1372,8 @@
     /* already loaded but not defined */
     st_delete(tbl, (st_data_t*)&id, 0);
     if (!tbl->num_entries) {
-	DATA_PTR(val) = 0;
-	st_free_table(tbl);
 	id = autoload;
-	if (st_delete(RCLASS(mod)->iv_tbl, (st_data_t*)&id, &val)) {
-	    rb_gc_force_recycle(val);
-	}
+	st_delete(RCLASS(mod)->iv_tbl, (st_data_t*)&id, &val);
     }
     return Qnil;
 }
Index: ruby_1_8_6/version.h
===================================================================
--- ruby_1_8_6/version.h	(revision 21938)
+++ ruby_1_8_6/version.h	(revision 21939)
@@ -1,15 +1,15 @@
 #define RUBY_VERSION "1.8.6"
-#define RUBY_RELEASE_DATE "2009-01-29"
+#define RUBY_RELEASE_DATE "2009-02-02"
 #define RUBY_VERSION_CODE 186
-#define RUBY_RELEASE_CODE 20090129
-#define RUBY_PATCHLEVEL 315
+#define RUBY_RELEASE_CODE 20090202
+#define RUBY_PATCHLEVEL 316
 
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 8
 #define RUBY_VERSION_TEENY 6
 #define RUBY_RELEASE_YEAR 2009
-#define RUBY_RELEASE_MONTH 1
-#define RUBY_RELEASE_DAY 29
+#define RUBY_RELEASE_MONTH 2
+#define RUBY_RELEASE_DAY 2
 
 #ifdef RUBY_EXTERN
 RUBY_EXTERN const char ruby_version[];
@@ -20,3 +20,4 @@
 
 
 
+

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

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