ruby-changes:48361
From: ko1 <ko1@a...>
Date: Fri, 27 Oct 2017 15:01:26 +0900 (JST)
Subject: [ruby-changes:48361] ko1:r60475 (trunk): should use `th`.
ko1 2017-10-27 15:01:21 +0900 (Fri, 27 Oct 2017) New Revision: 60475 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60475 Log: should use `th`. * signal.c (check_stack_overflow): ruby_stack_overflowed_p() should accept `th`. Modified files: trunk/signal.c Index: signal.c =================================================================== --- signal.c (revision 60474) +++ signal.c (revision 60475) @@ -856,10 +856,10 @@ static void https://github.com/ruby/ruby/blob/trunk/signal.c#L856 check_stack_overflow(int sig, const void *addr) { int ruby_stack_overflowed_p(const rb_thread_t *, const void *); - rb_execution_context_t *ec = GET_EC(); - if (ruby_stack_overflowed_p(ec, addr)) { + rb_thread_t *th = GET_THREAD(); + if (ruby_stack_overflowed_p(th, addr)) { reset_sigmask(sig); - rb_ec_stack_overflow(ec, FALSE); + rb_ec_stack_overflow(th->ec, FALSE); } } # endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/