* 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:
parent
906e88e376
commit
46fcec9a17
@ -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>
|
Wed Feb 5 11:46:42 2014 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* gc.c (gc_mark_children): STR_ASSOC is no longer available.
|
* gc.c (gc_mark_children): STR_ASSOC is no longer available.
|
||||||
|
4
string.c
4
string.c
@ -107,9 +107,9 @@ VALUE rb_cSymbol;
|
|||||||
}\
|
}\
|
||||||
}\
|
}\
|
||||||
else {\
|
else {\
|
||||||
|
assert(!FL_TEST((str), STR_SHARED)); \
|
||||||
REALLOC_N(RSTRING(str)->as.heap.ptr, char, (capacity)+termlen);\
|
REALLOC_N(RSTRING(str)->as.heap.ptr, char, (capacity)+termlen);\
|
||||||
if (!STR_NOCAPA_P(str))\
|
RSTRING(str)->as.heap.aux.capa = (capacity);\
|
||||||
RSTRING(str)->as.heap.aux.capa = (capacity);\
|
|
||||||
}\
|
}\
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user