diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-25 18:47:03 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-25 18:47:03 +0000 |
commit | b00a501e4312c11c6c98402082fe485731004561 (patch) | |
tree | d17045e1906b0e6f92d2f9904d01de5debb8f853 /cont.c | |
parent | edf0e471c49dd54c8787b8b234c4accafceae27a (diff) | |
download | ruby-b00a501e4312c11c6c98402082fe485731004561.tar.gz ruby-b00a501e4312c11c6c98402082fe485731004561.tar.xz ruby-b00a501e4312c11c6c98402082fe485731004561.zip |
* cont.c (rb_fiber_s_new): fix to clear rb_thread_t#tag.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r-- | cont.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -489,6 +489,7 @@ rb_fiber_s_new(VALUE self) th->cfp->iseq = 0; th->cfp->proc = 0; th->cfp->block_iseq = 0; + th->tag = 0; th->first_proc = rb_block_proc(); @@ -506,10 +507,8 @@ rb_fiber_terminate(rb_context_t *cont) VALUE value = cont->value; GetContPtr(cont->prev, prev_cont); - cont->alive = Qfalse; - if (prev_cont->alive == Qfalse) { rb_fiber_yield(1, &value, GET_THREAD()->root_fiber); } |