ruby-changes:41838
From: nobu <ko1@a...>
Date: Wed, 24 Feb 2016 11:42:01 +0900 (JST)
Subject: [ruby-changes:41838] nobu:r53912 (trunk): parse.y: hide compile_option
nobu 2016-02-24 11:42:40 +0900 (Wed, 24 Feb 2016) New Revision: 53912 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53912 Log: parse.y: hide compile_option * parse.y (parser_set_compile_option_flag): hide compile_option hash from ObjectSpace. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 53911) +++ parse.y (revision 53912) @@ -7093,7 +7093,7 @@ parser_set_compile_option_flag(struct pa https://github.com/ruby/ruby/blob/trunk/parse.y#L7093 if (b < 0) return; if (!parser->compile_option) - parser->compile_option = rb_ident_hash_new(); + parser->compile_option = rb_obj_hide(rb_ident_hash_new()); rb_hash_aset(parser->compile_option, ID2SYM(rb_intern(name)), (b ? Qtrue : Qfalse)); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/