summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-15 10:39:27 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-15 10:39:27 +0000
commit3e759ed78d99193260ddda9b8dd80bc5710509fc (patch)
tree43c3f92644c5aee85b3a1408bd38571b308e7a8a
parent6f7366c2064eb42231500e17ee3b3e5d55701f3f (diff)
* iseq.c (rb_iseq_clone): Should not insert write barrier from
non-RVALUE data (to non-RVALUE data, of course). Ruby 2.1 also has a same problem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--iseq.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 27652ffc82..8430e944d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Fri Aug 15 19:38:00 2014 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (rb_iseq_clone): Should not insert write barrier from
+ non-RVALUE data (to non-RVALUE data, of course).
+
+ Ruby 2.1 also has a same problem.
+
Fri Aug 15 19:34:33 2014 Koichi Sasada <ko1@atdot.net>
* string.c (setup_fake_str): fake strings should not set class by
diff --git a/iseq.c b/iseq.c
index 4e11679ed8..1eed85ba33 100644
--- a/iseq.c
+++ b/iseq.c
@@ -1941,7 +1941,7 @@ rb_iseq_clone(VALUE iseqval, VALUE newcbase)
if (iseq0->cref_stack->nd_next) {
RB_OBJ_WRITE(iseq1->cref_stack, &iseq1->cref_stack->nd_next, iseq0->cref_stack->nd_next);
}
- RB_OBJ_WRITE(iseq1, &iseq1->klass, newcbase);
+ RB_OBJ_WRITE(iseq1->self, &iseq1->klass, newcbase);
}
return newiseq;