mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
cont.c: fix up r59557 for !FIBER_USE_NATIVE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d3650ccc7e
commit
25213719c2
1 changed files with 2 additions and 0 deletions
2
cont.c
2
cont.c
|
@ -1422,9 +1422,11 @@ fiber_store(rb_fiber_t *next_fib, rb_thread_t *th)
|
|||
VM_ASSERT(FIBER_RESUMED_P(fib) || FIBER_TERMINATED_P(fib));
|
||||
VM_ASSERT(FIBER_RUNNABLE_P(next_fib));
|
||||
|
||||
#if FIBER_USE_NATIVE
|
||||
if (FIBER_CREATED_P(next_fib)) {
|
||||
fiber_initialize_machine_stack_context(next_fib, th->vm->default_params.fiber_machine_stack_size);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (FIBER_RESUMED_P(fib)) fiber_status_set(fib, FIBER_SUSPENDED);
|
||||
fiber_status_set(next_fib, FIBER_RESUMED);
|
||||
|
|
Loading…
Reference in a new issue