[前][次][番号順一覧][スレッド一覧]

ruby-changes:41118

From: ko1 <ko1@a...>
Date: Fri, 18 Dec 2015 17:24:36 +0900 (JST)
Subject: [ruby-changes:41118] ko1:r53191 (trunk): * compile.c (ibf_load_object_string): use fstring if frozen string.

ko1	2015-12-18 17:24:29 +0900 (Fri, 18 Dec 2015)

  New Revision: 53191

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53191

  Log:
    * compile.c (ibf_load_object_string): use fstring if frozen string.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53190)
+++ ChangeLog	(revision 53191)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Dec 18 17:24:09 2015  Koichi Sasada  <ko1@a...>
+
+	* compile.c (ibf_load_object_string): use fstring if frozen string.
+
 Fri Dec 18 16:54:38 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/stringio/stringio.c (strio_set_encoding): add StringIO's own
Index: compile.c
===================================================================
--- compile.c	(revision 53190)
+++ compile.c	(revision 53191)
@@ -7650,7 +7650,7 @@ ibf_load_object_string(const struct ibf_ https://github.com/ruby/ruby/blob/trunk/compile.c#L7650
     rb_enc_associate_index(str, encindex);
 
     if (header->internal) rb_obj_hide(str);
-    if (header->frozen)   rb_obj_freeze(str);
+    if (header->frozen)   str = rb_fstring(str);
 
     return str;
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]