summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-27 12:17:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-27 12:17:56 +0000
commit083a25f9031401803f91156ba7687a53312c7e75 (patch)
tree3f01f784c5b40a1cd8fed23a74eeacea34ddcc81 /vm_core.h
parent9e9f57e4a0e6cb87a983d14230e1822f0f8bec13 (diff)
vm_core.h: shrink trap_list size
* vm_core.h (rb_vm_struct): separate trap_list cmd and safe to each arrays, to shrink the size. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_core.h b/vm_core.h
index c23f50690e..37241b36b0 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -547,9 +547,9 @@ typedef struct rb_vm_struct {
/* signal */
struct {
- VALUE cmd;
- int safe;
- } trap_list[RUBY_NSIG];
+ VALUE cmd[RUBY_NSIG];
+ unsigned char safe[RUBY_NSIG];
+ } trap_list;
/* hook */
rb_hook_list_t event_hooks;