summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-16 09:39:09 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-16 09:39:09 +0000
commit01dc0a7104d09f59e5c94e286adcac7c04574eab (patch)
tree8c6a9d1c3652e1832c15c3a71bdfd83e611bc1d8 /vm_core.h
parent20a9bd67636a82ca83c5cef4755a8206dc34eca7 (diff)
* 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
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h6
1 files changed, 2 insertions, 4 deletions
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;