diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-15 22:35:01 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-15 22:35:01 +0000 |
commit | 71fcbf22a469c50b3cf54c2c4f45338fa1fa7962 (patch) | |
tree | 9f2b7bb302175919d03c3009dd00df59299ad6ba /vm.c | |
parent | baeb94fa3db4325d869f66fdbab3975efda21e92 (diff) | |
download | ruby-71fcbf22a469c50b3cf54c2c4f45338fa1fa7962.tar.gz |
cont.c (cont_save_thread): Sparse copying of thread data
Instead of copying the complete rb_thread_t struct (almost a kB),
selectively copy only those fields that will be needed later on.
* cont.c (rb_context_t): comment on saved_thread
(cont_save_thread): sparse copy
(cont_init): copy extra fields
(fiber_init): use current thread VM stack size
[ruby-core:65518] [Feature #10341]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
0 files changed, 0 insertions, 0 deletions