Skip to content

Commit 2eb09f3

Browse files
committed
merge revision(s) r47190: [Backport ruby#10139]
* string.c (setup_fake_str): fake strings should not set class by RBASIC_SET_CLASS() because it insert write barriers to fake (non-RVALUE) structure. It can cause unexpected behaviour. Ruby 2.1 also have a same problem (setup_fake_str() in parse.y). * symbol.c (setup_fake_str): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 9dfb0f3 commit 2eb09f3

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Wed Sep 10 02:33:08 2014 Koichi Sasada <[email protected]>
2+
3+
* parse.y (setup_fake_str): fake strings should not set class by
4+
RBASIC_SET_CLASS() because it insert write barriers to fake
5+
(non-RVALUE) structure.
6+
7+
It can cause unexpected behaviour.
8+
19
Fri Sep 5 17:01:38 2014 Zachary Scott <[email protected]>
210

311
* lib/rdoc/generator/template/darkfish/js/jquery.js: Backport

parse.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10403,7 +10403,7 @@ static VALUE
1040310403
setup_fake_str(struct RString *fake_str, const char *name, long len)
1040410404
{
1040510405
fake_str->basic.flags = T_STRING|RSTRING_NOEMBED;
10406-
RBASIC_SET_CLASS((VALUE)fake_str, rb_cString);
10406+
RBASIC_SET_CLASS_RAW((VALUE)fake_str, rb_cString);
1040710407
fake_str->as.heap.len = len;
1040810408
fake_str->as.heap.ptr = (char *)name;
1040910409
fake_str->as.heap.aux.capa = len;

version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#define RUBY_VERSION "2.1.2"
2-
#define RUBY_RELEASE_DATE "2014-09-06"
3-
#define RUBY_PATCHLEVEL 227
2+
#define RUBY_RELEASE_DATE "2014-09-10"
3+
#define RUBY_PATCHLEVEL 228
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 9
7-
#define RUBY_RELEASE_DAY 6
7+
#define RUBY_RELEASE_DAY 10
88

99
#include "ruby/version.h"
1010

0 commit comments

Comments
 (0)