From abc30f2591e26fff6bdb7fbf434dad25a89fef95 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 9 May 2018 09:53:19 +0000 Subject: 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 --- vm_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm_core.h b/vm_core.h index 06bd93d885..74064f7803 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; -- cgit v1.2.3