1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

vm_core.h (rb_execution_context_t): interrupt_mask size to match interrupt_flag

rb_atomic_t is 32-bit on 64-bit platforms (including the popular
x86-64 Linux), so save 4 bytes on this structure.  This doesn't
result in any final size reduction due to padding, yet, but
future changes are possible to shrink rb_execution_context_t

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2018-05-15 10:11:32 +00:00
parent ff6520b0f7
commit 0c91f10955

View file

@ -787,7 +787,7 @@ typedef struct rb_execution_context_struct {
/* interrupt flags */
rb_atomic_t interrupt_flag;
unsigned long interrupt_mask;
rb_atomic_t interrupt_mask; /* size should match flag */
rb_fiber_t *fiber_ptr;
struct rb_thread_struct *thread_ptr;