ruby-changes:8991
From: nobu <ko1@a...>
Date: Fri, 5 Dec 2008 01:35:46 +0900 (JST)
Subject: [ruby-changes:8991] Ruby:r20527 (trunk): * string.c (sym_to_proc): use hidden object.
nobu 2008-12-05 01:35:10 +0900 (Fri, 05 Dec 2008) New Revision: 20527 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20527 Log: * string.c (sym_to_proc): use hidden object. Modified files: trunk/ChangeLog trunk/string.c Index: ChangeLog =================================================================== --- ChangeLog (revision 20526) +++ ChangeLog (revision 20527) @@ -1,3 +1,7 @@ +Fri Dec 5 01:35:08 2008 Nobuyoshi Nakada <nobu@r...> + + * string.c (sym_to_proc): use hidden object. + Fri Dec 5 01:19:21 2008 Yukihiro Matsumoto <matz@r...> * pack.c (pack_pack): propagate taint status from format string to Index: string.c =================================================================== --- string.c (revision 20526) +++ string.c (revision 20527) @@ -6922,8 +6922,8 @@ VALUE *aryp; if (!sym_proc_cache) { + sym_proc_cache = rb_ary_tmp_new(SYM_PROC_CACHE_SIZE * 2); rb_gc_register_mark_object(sym_proc_cache); - sym_proc_cache = rb_ary_new2(SYM_PROC_CACHE_SIZE * 2); rb_ary_store(sym_proc_cache, SYM_PROC_CACHE_SIZE*2 - 1, Qnil); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/