mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use GET_EC()
directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5dfdaa9299
commit
49d0bbe73f
1 changed files with 4 additions and 4 deletions
8
cont.c
8
cont.c
|
@ -1503,11 +1503,11 @@ rb_threadptr_root_fiber_release(rb_thread_t *th)
|
|||
static inline rb_fiber_t*
|
||||
fiber_current(void)
|
||||
{
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
if (th->ec->fiber_ptr->cont.self == 0) {
|
||||
root_fiber_alloc(th);
|
||||
rb_execution_context_t *ec = GET_EC();
|
||||
if (ec->fiber_ptr->cont.self == 0) {
|
||||
root_fiber_alloc(rb_ec_thread_ptr(ec));
|
||||
}
|
||||
return th->ec->fiber_ptr;
|
||||
return ec->fiber_ptr;
|
||||
}
|
||||
|
||||
static inline rb_fiber_t*
|
||||
|
|
Loading…
Reference in a new issue