From a1e95636acd2b507b3d5d7b770f271992622a571 Mon Sep 17 00:00:00 2001 From: normal Date: Fri, 29 Aug 2014 06:30:03 +0000 Subject: string.c: move frozen_strings table to rb_vm_t Cleanup in case MVM development proceeds. * string.c: remove static frozen_strings * string.c (Init_frozen_strings): new function * string.c (rb_fstring): remove check for frozen strings, use per-VM table * string.c (rb_str_free): use per-VM table * string.c (Init_String): use per-VM table * vm_core.h (rb_vm_t): add frozen_strings table * internal.h (Init_frozen_strings): new function prototype * eval.c (ruby_setup): call Init_frozen_strings [Feature #10182] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 7bf971b9a5..e828e917ba 100644 --- a/vm_core.h +++ b/vm_core.h @@ -430,6 +430,7 @@ typedef struct rb_vm_struct { struct RArray at_exit; VALUE *defined_strings; + st_table *frozen_strings; /* params */ struct { /* size in byte */ -- cgit v1.2.3