Skip to content

Commit 860ec67

Browse files
committed
merge revision(s) r47191: [Backport ruby#10140]
* 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/branches/ruby_2_1@47481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 2eb09f3 commit 860ec67

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Wed Sep 10 02:51:38 2014 Koichi Sasada <[email protected]>
2+
3+
* iseq.c (rb_iseq_clone): Should not insert write barrier from
4+
non-RVALUE data (to non-RVALUE data, of course).
5+
6+
Ruby 2.1 also has a same problem.
7+
18
Wed Sep 10 02:33:08 2014 Koichi Sasada <[email protected]>
29

310
* parse.y (setup_fake_str): fake strings should not set class by

iseq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1943,7 +1943,7 @@ rb_iseq_clone(VALUE iseqval, VALUE newcbase)
19431943
if (iseq0->cref_stack->nd_next) {
19441944
RB_OBJ_WRITE(iseq1->cref_stack, &iseq1->cref_stack->nd_next, iseq0->cref_stack->nd_next);
19451945
}
1946-
RB_OBJ_WRITE(iseq1, &iseq1->klass, newcbase);
1946+
RB_OBJ_WRITE(iseq1->self, &iseq1->klass, newcbase);
19471947
}
19481948

19491949
return newiseq;

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.2"
22
#define RUBY_RELEASE_DATE "2014-09-10"
3-
#define RUBY_PATCHLEVEL 228
3+
#define RUBY_PATCHLEVEL 229
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 9

0 commit comments

Comments
 (0)