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.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 5e9204bd70..3c17a7811a 100644 --- a/vm.c +++ b/vm.c @@ -1737,8 +1737,6 @@ void rb_vm_trace_mark_event_hooks(rb_hook_list_t *hooks); void rb_vm_mark(void *ptr) { - int i; - RUBY_MARK_ENTER("vm"); RUBY_GC_INFO("-------------------------------------------------\n"); if (ptr) { @@ -1766,11 +1764,6 @@ rb_vm_mark(void *ptr) } rb_vm_trace_mark_event_hooks(&vm->event_hooks); - - for (i = 0; i < RUBY_NSIG; i++) { - if (vm->trap_list[i].cmd) - rb_gc_mark(vm->trap_list[i].cmd); - } } RUBY_MARK_LEAVE("vm"); -- cgit v1.2.3