ruby-changes:51428
From: nobu <ko1@a...>
Date: Tue, 12 Jun 2018 08:33:41 +0900 (JST)
Subject: [ruby-changes:51428] nobu:r63634 (trunk): ruby.c: making hidden objects
nobu 2018-06-12 08:33:35 +0900 (Tue, 12 Jun 2018) New Revision: 63634 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63634 Log: ruby.c: making hidden objects * ruby.c (add_modules): make hidden objects by particular functions. Modified files: trunk/ruby.c Index: ruby.c =================================================================== --- ruby.c (revision 63633) +++ ruby.c (revision 63634) @@ -655,11 +655,9 @@ add_modules(VALUE *req_list, const char https://github.com/ruby/ruby/blob/trunk/ruby.c#L655 VALUE feature; if (!list) { - *req_list = list = rb_ary_new(); - RBASIC_CLEAR_CLASS(list); + *req_list = list = rb_ary_tmp_new(0); } - feature = rb_str_new2(mod); - RBASIC_CLEAR_CLASS(feature); + feature = rb_str_cat_cstr(rb_str_tmp_new(0), mod); rb_ary_push(list, feature); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/