From 01dc0a7104d09f59e5c94e286adcac7c04574eab Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 16 Jul 2014 09:39:09 +0000 Subject: * vm_core.h: remove rb_vm_t::trap_list[RUBY_NSIG], but add rb_vm_t::trap_list_cmds (an array) and rb_vm_t::trap_list_safes[RUBY_NSIG] (separate to two different array). This modification reduce root objects. * signal.c: ditto. * vm.c (rb_vm_mark): remove marking code for rb_vm_t::trap_list. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 39dce05c99..44b63ea43f 100644 --- a/vm_core.h +++ b/vm_core.h @@ -364,10 +364,8 @@ typedef struct rb_vm_struct { struct st_table *loading_table; /* signal */ - struct { - VALUE cmd; - int safe; - } trap_list[RUBY_NSIG]; + VALUE trap_list_cmds; /* an Array object */ + int trap_list_safes[RUBY_NSIG]; /* hook */ rb_hook_list_t event_hooks; -- cgit v1.2.3