Project

General

Profile

Bug #13412 » 13412.patch

wanabe (_ wanabe), 09/05/2017 10:36 AM

View differences:

gc.c
return STACK_LENGTH;
}
#if !(defined(POSIX_SIGNAL) && defined(SIGSEGV) && defined(HAVE_SIGALTSTACK))
static int
stack_check(int water_mark)
{
......
#endif
return ret;
}
#endif
#define STACKFRAME_FOR_CALL_CFUNC 512
#define STACKFRAME_FOR_CALL_CFUNC 838
int
ruby_stack_check(void)
{
#if defined(POSIX_SIGNAL) && defined(SIGSEGV) && defined(HAVE_SIGALTSTACK)
return 0;
#else
return stack_check(STACKFRAME_FOR_CALL_CFUNC);
#endif
}
ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS
vm.c
VALUE *sp = th->cfp->sp;
const rb_callable_method_entry_t *me = th->passed_bmethod_me;
th->passed_bmethod_me = NULL;
stack_check(th);
for (i=0; i<argc; i++) {
sp[i] = argv[i];
(13-13/13)