1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* string.c (rb_str_new_frozen): remove debug print.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-05-13 18:34:10 +00:00
parent b8c0ff86d5
commit f254b689f2
2 changed files with 4 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Tue May 14 03:33:17 2013 Koichi Sasada <ko1@atdot.net>
* string.c (rb_str_new_frozen): remove debug print.
Tue May 14 03:22:51 2013 Koichi Sasada <ko1@atdot.net>
* include/ruby/ruby.h: enable to generate write barrier protected

View file

@ -721,9 +721,6 @@ rb_str_new_frozen(VALUE orig)
klass = rb_obj_class(orig);
if (STR_SHARED_P(orig) && (str = RSTRING(orig)->as.heap.aux.shared)) {
long ofs;
if (!OBJ_FROZEN(str)) {
rb_bug("xyzzy");
}
assert(OBJ_FROZEN(str));
ofs = RSTRING_LEN(str) - RSTRING_LEN(orig);
if ((ofs > 0) || (klass != RBASIC(str)->klass) ||