diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-07 05:22:09 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-07 05:22:09 +0000 |
commit | 48ce4cb414be48be1a73d2530203469b3b98281c (patch) | |
tree | c48f45a0bb33edc2b5c507f2727b840c929f3280 /thread_win32.c | |
parent | ee189904f0e3e0263adcbcc844947f6ccddfb7ad (diff) | |
download | ruby-48ce4cb414be48be1a73d2530203469b3b98281c.tar.gz |
* eval_intern.h: rename macros rb_thread_raised_* to
rb_ec_raised_*.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r-- | thread_win32.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/thread_win32.c b/thread_win32.c index c82bbfce45..e0d79d750a 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -734,7 +734,7 @@ native_reset_timer_thread(void) int ruby_stack_overflowed_p(const rb_thread_t *th, const void *addr) { - return rb_thread_raised_p(th, RAISED_STACKOVERFLOW); + return rb_ec_raised_p(th->ec, RAISED_STACKOVERFLOW); } #if defined(__MINGW32__) @@ -742,7 +742,7 @@ LONG WINAPI rb_w32_stack_overflow_handler(struct _EXCEPTION_POINTERS *exception) { if (exception->ExceptionRecord->ExceptionCode == EXCEPTION_STACK_OVERFLOW) { - rb_thread_raised_set(GET_THREAD(), RAISED_STACKOVERFLOW); + rb_ec_raised_set(GET_EC(), RAISED_STACKOVERFLOW); raise(SIGSEGV); } return EXCEPTION_CONTINUE_SEARCH; @@ -754,9 +754,9 @@ void ruby_alloca_chkstk(size_t len, void *sp) { if (ruby_stack_length(NULL) * sizeof(VALUE) >= len) { - rb_thread_t *th = GET_THREAD(); - if (!rb_thread_raised_p(th, RAISED_STACKOVERFLOW)) { - rb_thread_raised_set(th, RAISED_STACKOVERFLOW); + rb_execution_context_t *ec = GET_EC(); + if (!rb_ec_raised_p(ec, RAISED_STACKOVERFLOW)) { + rb_ec_raised_set(ec, RAISED_STACKOVERFLOW); rb_exc_raise(sysstack_error); } } |