ruby-changes:33622
From: nobu <ko1@a...>
Date: Thu, 24 Apr 2014 13:25:01 +0900 (JST)
Subject: [ruby-changes:33622] nobu:r45703 (trunk): parse.y: resurrect dynamic symbol and name
nobu 2014-04-24 13:24:56 +0900 (Thu, 24 Apr 2014) New Revision: 45703 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45703 Log: parse.y: resurrect dynamic symbol and name * parse.y (lookup_id_str): resurrect the dynamic symbol before accessing its content, and its name before returning. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 45702) +++ parse.y (revision 45703) @@ -10759,6 +10759,8 @@ static int https://github.com/ruby/ruby/blob/trunk/parse.y#L10759 lookup_id_str(ID id, st_data_t *data) { if (ID_DYNAMIC_SYM_P(id)) { + rb_gc_resurrect((VALUE)id); + rb_gc_resurrect(RSYMBOL(id)->fstr); *data = RSYMBOL(id)->fstr; return TRUE; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/