* string.c (RESIZE_CAPA): should not resize shared string.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2014-02-05 03:14:23 +00:00
parent 906e88e376
commit 46fcec9a17
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Wed Feb 5 12:11:04 2014 Koichi Sasada <ko1@atdot.net>
* string.c (RESIZE_CAPA): should not resize shared string.
Wed Feb 5 11:46:42 2014 Koichi Sasada <ko1@atdot.net>
* gc.c (gc_mark_children): STR_ASSOC is no longer available.

View File

@ -107,8 +107,8 @@ VALUE rb_cSymbol;
}\
}\
else {\
assert(!FL_TEST((str), STR_SHARED)); \
REALLOC_N(RSTRING(str)->as.heap.ptr, char, (capacity)+termlen);\
if (!STR_NOCAPA_P(str))\
RSTRING(str)->as.heap.aux.capa = (capacity);\
}\
} while (0)