ruby-changes:5630
From: matz <ko1@a...>
Date: Fri, 13 Jun 2008 13:02:53 +0900 (JST)
Subject: [ruby-changes:5630] Ruby:r17137 (trunk): * enum.c (sort_by_i): use NODE_DOT2 instead of NODE_MEMO to avoid
matz 2008-06-13 13:02:36 +0900 (Fri, 13 Jun 2008) New Revision: 17137 Modified files: trunk/ChangeLog trunk/enum.c trunk/version.h Log: * enum.c (sort_by_i): use NODE_DOT2 instead of NODE_MEMO to avoid extra calls to is_pointer_to_heap() in GC. * enum.c (enum_zip): ditto. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/version.h?r1=17137&r2=17136&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17137&r2=17136&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/enum.c?r1=17137&r2=17136&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 17136) +++ ChangeLog (revision 17137) @@ -1,3 +1,10 @@ +Fri Jun 13 12:55:37 2008 Yukihiro Matsumoto <matz@r...> + + * enum.c (sort_by_i): use NODE_DOT2 instead of NODE_MEMO to avoid + extra calls to is_pointer_to_heap() in GC. + + * enum.c (enum_zip): ditto. + Fri Jun 13 00:41:58 2008 Yusuke Endoh <mame@t...> * test/ruby/test_thread.rb: add a test. Index: enum.c =================================================================== --- enum.c (revision 17136) +++ enum.c (revision 17137) @@ -691,7 +691,8 @@ if (RBASIC(ary)->klass) { rb_raise(rb_eRuntimeError, "sort_by reentered"); } - memo = rb_node_newnode(NODE_MEMO, rb_yield(i), i, 0); + /* use NODE_DOT2 as memo(v, v, -) */ + memo = rb_node_newnode(NODE_DOT2, rb_yield(i), i, 0); rb_ary_push(ary, (VALUE)memo); return Qnil; } @@ -1574,7 +1575,8 @@ if (!rb_block_given_p()) { result = rb_ary_new(); } - memo = rb_node_newnode(NODE_MEMO, result, rb_ary_new4(argc, argv), 0); + /* use NODE_DOT2 as memo(v, v, -) */ + memo = rb_node_newnode(NODE_DOT2, result, rb_ary_new4(argc, argv), 0); rb_block_call(obj, id_each, 0, 0, allary ? zip_ary : zip_i, (VALUE)memo); return result; Index: version.h =================================================================== --- version.h (revision 17136) +++ version.h (revision 17137) @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2008-06-12" +#define RUBY_RELEASE_DATE "2008-06-13" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20080612 +#define RUBY_RELEASE_CODE 20080613 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2008 #define RUBY_RELEASE_MONTH 6 -#define RUBY_RELEASE_DAY 12 +#define RUBY_RELEASE_DAY 13 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/