summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-08 12:50:03 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-08 12:50:03 +0000
commit6d9e64d37c5eb24c670165a5c78b3b9eb076e2cf (patch)
treefb6de788b4c6aefda36787a059974cb236cb90a1
parent58aa09cb146cffcc258420d63fbf40b349afdb3a (diff)
* cont.c (root_fiber_alloc): set root fiber's status RUNNING.
in cont_mark() only RUNNING fiber's machine stack is marked. root fiber's status should be RUNNING at the beginning regardless of FIBER_USE_NATIVE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--cont.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fca0e57..c6fc991 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Wed Jun 8 21:38:57 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
+
+ * cont.c (root_fiber_alloc): set root fiber's status RUNNING.
+ in cont_mark() only RUNNING fiber's machine stack is marked.
+ root fiber's status should be RUNNING at the beginning regardless of
+ FIBER_USE_NATIVE.
+
Tue Jun 7 20:50:11 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* doc/irb/irb.rd: fix typo. patch by Nobuhiro IMAI.
diff --git a/cont.c b/cont.c
index 72e1117..770cfeb 100644
--- a/cont.c
+++ b/cont.c
@@ -1148,8 +1148,8 @@ root_fiber_alloc(rb_thread_t *th)
#ifdef _WIN32
fib->fib_handle = ConvertThreadToFiber(0);
#endif
- fib->status = RUNNING;
#endif
+ fib->status = RUNNING;
fib->prev_fiber = fib->next_fiber = fib;
return fib;