* class.c (clone_method): should copy cbase in cref as well.

[ruby-dev:35116]

* iseq.c (iseq_mark): mark original iseq object.

* iseq.c (iseq_free): do not free internal data if they have
  original iseq to belong.

* iseq.c (rb_iseq_clone): a new function to clone iseq value.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-08-11 08:13:42 +00:00
parent 5898c07466
commit e956f28724
4 changed files with 60 additions and 15 deletions

View file

@ -261,6 +261,7 @@ struct rb_iseq_struct {
/****************/
VALUE self;
VALUE orig; /* non-NULL if its data have origin */
/* block inlining */
/*