rb_fiber_t for root_fiber is allocated before running Threads.
Fiber objects wrapping this rb_fiber_t for root_fiber are created
when root Fiber object is required explicitly (for example, Fiber
switching and so on). We can put calling ConvertThreadToFiber().
In other words, we can pending ConvertThreadToFiber()
until Fiber objects are created.
refactoring r63073.
cont.c (root_fiber_alloc): call
ConvertThreadToFiber()
here.rb_fiber_t
for root_fiber is allocated before running Threads.Fiber objects wrapping this rb_fiber_t for root_fiber are created
when root Fiber object is required explicitly (for example, Fiber
switching and so on). We can put calling
ConvertThreadToFiber()
.In other words, we can pending
ConvertThreadToFiber()
until Fiber objects are created.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e