diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-05 02:49:41 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-05 02:49:41 +0000 |
commit | 906e88e376e9933e9664b477bc86357a9cd01bda (patch) | |
tree | 637f43acce65767e4464506d0f3b53f3973581f5 | |
parent | 62bd0f180fcdbf3c55ba6cc400ae631986ad720b (diff) | |
download | ruby-906e88e376e9933e9664b477bc86357a9cd01bda.tar.gz |
* gc.c (gc_mark_children): STR_ASSOC is no longer available.
Reported by @nagachika.
http://d.hatena.ne.jp/nagachika/20140204
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gc.c | 3 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Wed Feb 5 11:46:42 2014 Koichi Sasada <ko1@atdot.net> + + * gc.c (gc_mark_children): STR_ASSOC is no longer available. + Reported by @nagachika. + http://d.hatena.ne.jp/nagachika/20140204 + Wed Feb 5 11:27:22 2014 Koichi Sasada <ko1@atdot.net> * string.c (rb_str_new_frozen): refactoring code. @@ -3866,8 +3866,7 @@ gc_mark_children(rb_objspace_t *objspace, VALUE ptr) goto again; case T_STRING: -#define STR_ASSOC FL_USER3 /* copied from string.c */ - if (FL_TEST(obj, RSTRING_NOEMBED) && FL_ANY(obj, ELTS_SHARED|STR_ASSOC)) { + if (STR_SHARED_P(obj)) { ptr = obj->as.string.as.heap.aux.shared; goto again; } |