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

ruby-changes:12169

From: yugui <ko1@a...>
Date: Thu, 25 Jun 2009 01:08:20 +0900 (JST)
Subject: [ruby-changes:12169] Ruby:r23844 (ruby_1_9_1): merges r23815 from trunk into ruby_1_9_1.

yugui	2009-06-25 01:08:04 +0900 (Thu, 25 Jun 2009)

  New Revision: 23844

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

  Log:
    merges r23815 from trunk into ruby_1_9_1.
    --
    * compile.c (iseq_set_arguments, iseq_compile_each): internal
      arrays must be hidden.  [ruby-dev:38613]
    * vm.c (Init_top_self): ditto.

  Modified files:
    branches/ruby_1_9_1/ChangeLog
    branches/ruby_1_9_1/compile.c
    branches/ruby_1_9_1/version.h
    branches/ruby_1_9_1/vm.c

Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 23843)
+++ ruby_1_9_1/ChangeLog	(revision 23844)
@@ -1,3 +1,10 @@
+Mon Jun 22 16:14:30 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* compile.c (iseq_set_arguments, iseq_compile_each): internal
+	  arrays must be hidden.  [ruby-dev:38613]
+
+	* vm.c (Init_top_self): ditto.
+
 Tue Jun 23 01:17:38 2009  Tanaka Akira  <akr@f...>
 
 	* ruby.c (process_options): don't specify .so for encdb here.
Index: ruby_1_9_1/compile.c
===================================================================
--- ruby_1_9_1/compile.c	(revision 23843)
+++ ruby_1_9_1/compile.c	(revision 23844)
@@ -1088,7 +1088,7 @@
 	if (node_opt) {
 	    NODE *node = node_opt;
 	    LABEL *label;
-	    VALUE labels = rb_ary_new();
+	    VALUE labels = rb_ary_tmp_new(1);
 	    int i = 0, j;
 
 	    while (node) {
@@ -1112,6 +1112,7 @@
 	    for (j = 0; j < i; j++) {
 		iseq->arg_opt_table[j] &= ~1;
 	    }
+	    rb_ary_clear(labels);
 	}
 	else {
 	    iseq->arg_opts = 0;
@@ -3010,7 +3011,7 @@
 	DECL_ANCHOR(head);
 	DECL_ANCHOR(body_seq);
 	DECL_ANCHOR(cond_seq);
-	VALUE special_literals = rb_ary_new();
+	VALUE special_literals = rb_ary_tmp_new(1);
 
 	INIT_ANCHOR(head);
 	INIT_ANCHOR(body_seq);
Index: ruby_1_9_1/vm.c
===================================================================
--- ruby_1_9_1/vm.c	(revision 23843)
+++ ruby_1_9_1/vm.c	(revision 23844)
@@ -1992,7 +1992,7 @@
     rb_define_singleton_method(rb_vm_top_self(), "to_s", main_to_s, 0);
 
     /* initialize mark object array */
-    vm->mark_object_ary = rb_ary_new();
+    vm->mark_object_ary = rb_ary_tmp_new(1);
 }
 
 VALUE *
Index: ruby_1_9_1/version.h
===================================================================
--- ruby_1_9_1/version.h	(revision 23843)
+++ ruby_1_9_1/version.h	(revision 23844)
@@ -1,6 +1,6 @@
 #define RUBY_VERSION "1.9.1"
 #define RUBY_RELEASE_DATE "2009-06-25"
-#define RUBY_PATCHLEVEL 201
+#define RUBY_PATCHLEVEL 202
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 9
 #define RUBY_VERSION_TEENY 1

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

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