summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-08-09 17:31:19 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-08-09 17:31:19 +0900
commitef64ab917eec02491f6bf7233a4031a8c35385e3 (patch)
tree0ad94f62cad0fa460c4f2c9affe28c471fffcaa3
parenta4a2dd79420d1061ab1615a50b830f567e043d34 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index dbf19e0..62c5c79 100644
--- a/gc.c
+++ b/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)