diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-15 10:11:32 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-15 10:11:32 +0000 |
commit | 0c91f10955fe137e9a474df74019941f86f3f827 (patch) | |
tree | a3658749f1a5ce5e09987ac6e10c8b32e68b7bf0 /vm_core.h | |
parent | ff6520b0f77e25dc269164c1be8853f808de06a0 (diff) |
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
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |