ruby-changes:29981
From: ko1 <ko1@a...>
Date: Thu, 18 Jul 2013 14:39:43 +0900 (JST)
Subject: [ruby-changes:29981] ko1:r42033 (trunk): * string.c (str_alloc): no need to clear RString (already cleared).
ko1 2013-07-18 14:39:30 +0900 (Thu, 18 Jul 2013) New Revision: 42033 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42033 Log: * string.c (str_alloc): no need to clear RString (already cleared). Modified files: trunk/ChangeLog trunk/string.c Index: ChangeLog =================================================================== --- ChangeLog (revision 42032) +++ ChangeLog (revision 42033) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Jul 18 14:37:57 2013 Koichi Sasada <ko1@a...> + + * string.c (str_alloc): no need to clear RString (already cleared). + Thu Jul 18 12:57:47 2013 Tanaka Akira <akr@f...> * bignum.c (BDIGITS_ZERO): Defined. Index: string.c =================================================================== --- string.c (revision 42032) +++ string.c (revision 42033) @@ -382,11 +382,6 @@ static inline VALUE https://github.com/ruby/ruby/blob/trunk/string.c#L382 str_alloc(VALUE klass) { NEWOBJ_OF(str, struct RString, klass, T_STRING | (RGENGC_WB_PROTECTED_STRING ? FL_WB_PROTECTED : 0)); - - str->as.heap.ptr = 0; - str->as.heap.len = 0; - str->as.heap.aux.capa = 0; - return (VALUE)str; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/