summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-09 09:53:19 (GMT)
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-09 09:53:19 (GMT)
commitabc30f2591e26fff6bdb7fbf434dad25a89fef95 (patch)
tree522fff2f0d579d939b06926a0b6532890f926a0f /vm_core.h
parentf5fef0a80d597f40c2d1a8cc8079bf190039fd6f (diff)
align jmp_buf to VALUE
This ec->machine.regs is marked by GC. However jmp_buf is not defined by us. There are chances of unaligned access. We should force it VALUE-aligned. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 06bd93d..74064f7 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -823,7 +823,7 @@ typedef struct rb_execution_context_struct {
VALUE *register_stack_end;
size_t register_stack_maxsize;
#endif
- jmp_buf regs;
+ RUBY_ALIGNAS(SIZEOF_VALUE) jmp_buf regs;
} machine;
} rb_execution_context_t;