diff options
-rw-r--r-- | thread_win32.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); } #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); 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_exc_raise(sysstack_error); } } |