1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

gc.c: Increase STACKFRAME_FOR_CALL_CFUNC

On macOS Mojave, the child process invoked in TestFiber#test_stack_size
gets stuck because the stack overflow detection is too late.
(ko1 figured out the mechanism of the failure.)

This change attempts to detect stack overflow earlier.
This commit is contained in:
Yusuke Endoh 2019-08-09 17:31:19 +09:00
parent a4a2dd7942
commit ef64ab917e

2
gc.c
View file

@ -4450,7 +4450,7 @@ stack_check(rb_execution_context_t *ec, int water_mark)
#define stack_check(ec, water_mark) FALSE
#endif
#define STACKFRAME_FOR_CALL_CFUNC 838
#define STACKFRAME_FOR_CALL_CFUNC 1024
MJIT_FUNC_EXPORTED int
rb_ec_stack_check(rb_execution_context_t *ec)