diff options
| author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-28 00:35:22 +0000 |
|---|---|---|
| committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-28 00:35:22 +0000 |
| commit | e432c526261848120b3f66c46e06bd2a4265c9bb (patch) | |
| tree | e368dd5e6b164917caa8406f98b7a47b65832f24 /spec/ruby/shared/sizedqueue | |
| parent | 42cb4feda167bcab52d6d1d95f45c48b3eb62723 (diff) | |
io.c: reduce IO.copy_stream stack usage on Linux
nogvl_copy_file_range and nogvl_copy_stream_sendfile each
used 344 bytes of stack before this change. Now, they are
inlined into nogvl_copy_stream_func which only uses 200 bytes
of stack.
"struct stat" is 144 bytes on my 64-bit Linux.
Note: this doesn't affect GC (yet) since GVL is released;
but increases safety if called from deep machine stacks.
It will affect GC if Thread::Light is merged.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/shared/sizedqueue')
0 files changed, 0 insertions, 0 deletions
