aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-02 21:48:51 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-02 21:48:51 +0000
commit30331259830885834780d46e51969dff2002c89b (patch)
treeb9ecda477c941969c06b55f917caf4485da141e5 /thread.c
parentcf658671bc3c6a44ff53d6df1a219110cc48ad1f (diff)
downloadruby-30331259830885834780d46e51969dff2002c89b.tar.gz
fix stack storing for root fibers.
* cont.c (root_fiber_alloc): this function is called by fiber_current() and fiber_store(). fiber_current() should clear VM stack information in a fiber data because runnning thread knows stack information and has responsibility to manage it. However fiber_store() requires to remain VM stack information in a fiber data because the responsibility to manage VM stack is moved to the Fiber from the Thread (and switch to another fiber). * cont.c (root_fiber_alloc): save thread's fiber and root_fiber information. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
0 files changed, 0 insertions, 0 deletions