aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-27 22:20:45 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-27 22:20:45 +0000
commita607c866dc3b8c22479826eeda1f20f87d836fd6 (patch)
tree542567a0c286a316f0297ad044091eed3f0e083b /io.c
parent7c4a422d835409e76b53a03d77aa2beeec44abb8 (diff)
downloadruby-a607c866dc3b8c22479826eeda1f20f87d836fd6.tar.gz
io.c (struct copy_stream_struct): packing
Reduce the struct to 80 bytes (from 88) on amd64 to reduce stack use. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/io.c b/io.c
index 4a3f152409..3a2e5b081b 100644
--- a/io.c
+++ b/io.c
@@ -10697,11 +10697,11 @@ struct copy_stream_struct {
int src_fd;
int dst_fd;
- int close_src;
- int close_dst;
+ unsigned close_src : 1;
+ unsigned close_dst : 1;
+ int error_no;
off_t total;
const char *syserr;
- int error_no;
const char *notimp;
VALUE th;
};