diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-08 01:59:17 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-08 01:59:17 +0000 |
commit | 9464be0ddbc46305c373ea79c21858f9ba867933 (patch) | |
tree | c7f4f4c8fd4a5d00de6bfd9d9d886586e8397f5d /ext/socket/depend | |
parent | f9ac4da4fc36fd735a19e82c41281f45f7beccf1 (diff) | |
download | ruby-9464be0ddbc46305c373ea79c21858f9ba867933.tar.gz |
reduce rb_mutex_t size from 80 bytes to 72 bytes on 64-bit
We can use existing RVALUE flags to avoid adding a 4-byte
integer to store a boolean flag. This integer cost us 8 bytes
due to default (lack of) struct packing on x86-64
* thread_sync.c (MUTEX_ALLOW_TRAP): define as FL_USER1
(struct rb_mutex_struct): remove allow_trap
(rb_mutex_lock): adjust for flag check
(rb_mutex_allow_trap): adjust for flag set/unset
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/depend')
0 files changed, 0 insertions, 0 deletions