ruby-changes:38924
From: normal <ko1@a...>
Date: Wed, 24 Jun 2015 09:25:01 +0900 (JST)
Subject: [ruby-changes:38924] normal:r51005 (trunk): variable.c: remove FL_ABLE check for generic ivars
normal 2015-06-24 09:24:32 +0900 (Wed, 24 Jun 2015) New Revision: 51005 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51005 Log: variable.c: remove FL_ABLE check for generic ivars Missed this in r50758. * variable.c (generic_ivar_set): remove FL_ABLE check (gen_ivar_copy): ditto [ruby-core:69715] Modified files: trunk/ChangeLog trunk/variable.c Index: ChangeLog =================================================================== --- ChangeLog (revision 51004) +++ ChangeLog (revision 51005) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Jun 24 09:23:03 2015 Eric Wong <e@8...> + + * variable.c (generic_ivar_set): remove FL_ABLE check + (gen_ivar_copy): ditto + [ruby-core:69715] + Wed Jun 24 08:28:15 2015 Eric Wong <e@8...> * ext/socket/ancdata.c (bsock_recvmsg_internal): reduce stack use Index: variable.c =================================================================== --- variable.c (revision 51004) +++ variable.c (revision 51005) @@ -1357,7 +1357,7 @@ generic_ivar_set(VALUE obj, ID id, VALUE https://github.com/ruby/ruby/blob/trunk/variable.c#L1357 ivup.u.ivtbl->ivptr[ivup.index] = val; - if (FL_ABLE(obj)) RB_OBJ_WRITTEN(obj, Qundef, val); + RB_OBJ_WRITTEN(obj, Qundef, val); } VALUE @@ -1541,7 +1541,7 @@ gen_ivar_copy(ID id, VALUE val, st_data_ https://github.com/ruby/ruby/blob/trunk/variable.c#L1541 } c->ivtbl->ivptr[ivup.index] = val; - if (FL_ABLE(c->obj)) RB_OBJ_WRITTEN(c->obj, Qundef, val); + RB_OBJ_WRITTEN(c->obj, Qundef, val); return ST_CONTINUE; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/