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:
parent
a4a2dd7942
commit
ef64ab917e
1 changed files with 1 additions and 1 deletions
2
gc.c
2
gc.c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue