diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-08-09 17:31:19 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-08-09 17:31:19 +0900 |
commit | ef64ab917eec02491f6bf7233a4031a8c35385e3 (patch) | |
tree | 0ad94f62cad0fa460c4f2c9affe28c471fffcaa3 | |
parent | a4a2dd79420d1061ab1615a50b830f567e043d34 (diff) | |
download | ruby-ef64ab917eec02491f6bf7233a4031a8c35385e3.tar.gz |
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.
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |