ruby-changes:53831
From: normal <ko1@a...>
Date: Wed, 28 Nov 2018 07:20:58 +0900 (JST)
Subject: [ruby-changes:53831] normal:r66049 (trunk): io.c (struct copy_stream_struct): packing
normal 2018-11-28 07:20:45 +0900 (Wed, 28 Nov 2018) New Revision: 66049 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66049 Log: io.c (struct copy_stream_struct): packing Reduce the struct to 80 bytes (from 88) on amd64 to reduce stack use. Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 66048) +++ io.c (revision 66049) @@ -10697,11 +10697,11 @@ struct copy_stream_struct { https://github.com/ruby/ruby/blob/trunk/io.c#L10697 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; }; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/