ruby-changes:6979
From: matz <ko1@a...>
Date: Mon, 11 Aug 2008 20:39:22 +0900 (JST)
Subject: [ruby-changes:6979] Ruby:r18497 (trunk): * iseq.c (rb_iseq_clone): should preserve cref_stack link.
matz 2008-08-11 20:39:09 +0900 (Mon, 11 Aug 2008) New Revision: 18497 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18497 Log: * iseq.c (rb_iseq_clone): should preserve cref_stack link. Modified files: trunk/ChangeLog trunk/iseq.c Index: ChangeLog =================================================================== --- ChangeLog (revision 18496) +++ ChangeLog (revision 18497) @@ -1,3 +1,7 @@ +Mon Aug 11 20:37:05 2008 Yukihiro Matsumoto <matz@r...> + + * iseq.c (rb_iseq_clone): should preserve cref_stack link. + Mon Aug 11 20:27:12 2008 Yukihiro Matsumoto <matz@r...> * ext/dl/cfunc.c (rb_dlcfunc_call): add taint check. Index: iseq.c =================================================================== --- iseq.c (revision 18496) +++ iseq.c (revision 18497) @@ -1246,6 +1246,9 @@ } if (newcbase) { iseq1->cref_stack = NEW_BLOCK(newcbase); + if (iseq0->cref_stack->nd_next) { + iseq1->cref_stack->nd_next = iseq0->cref_stack->nd_next; + } } return newiseq; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/