mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (sym_to_proc): use hidden object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
408ca7cbb1
commit
c7bd98b7b8
2 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Dec 5 01:35:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* string.c (sym_to_proc): use hidden object.
|
||||||
|
|
||||||
Fri Dec 5 01:19:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Dec 5 01:19:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* pack.c (pack_pack): propagate taint status from format string to
|
* pack.c (pack_pack): propagate taint status from format string to
|
||||||
|
|
|
||||||
2
string.c
2
string.c
|
|
@ -6922,8 +6922,8 @@ sym_to_proc(VALUE sym)
|
||||||
VALUE *aryp;
|
VALUE *aryp;
|
||||||
|
|
||||||
if (!sym_proc_cache) {
|
if (!sym_proc_cache) {
|
||||||
|
sym_proc_cache = rb_ary_tmp_new(SYM_PROC_CACHE_SIZE * 2);
|
||||||
rb_gc_register_mark_object(sym_proc_cache);
|
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);
|
rb_ary_store(sym_proc_cache, SYM_PROC_CACHE_SIZE*2 - 1, Qnil);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue