From 9d30ef596c3b6830cbb19bf00dd8072f43c3014d Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 18 Dec 2015 08:24:29 +0000 Subject: [PATCH] * compile.c (ibf_load_object_string): use fstring if frozen string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ compile.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8b3224034e..d57dbcc744 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Dec 18 17:24:09 2015 Koichi Sasada + + * compile.c (ibf_load_object_string): use fstring if frozen string. + Fri Dec 18 16:54:38 2015 Nobuyoshi Nakada * ext/stringio/stringio.c (strio_set_encoding): add StringIO's own diff --git a/compile.c b/compile.c index f858fbb681..ed6f9686cf 100644 --- a/compile.c +++ b/compile.c @@ -7650,7 +7650,7 @@ ibf_load_object_string(const struct ibf_load *load, const struct ibf_object_head 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; }