From 917fabf8fb8c2efbfadc608efa79c0937830ce10 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 4 Jun 2019 15:22:31 -0700 Subject: Reduce interpreter recursion limit (#2162) This should be small enough to work in a 512K stack on Linux, which may then be small enough to work on all common OSes. I had to update some spec tests which actually did more recursive calls, but I don't think the change reduces any relevant amount of test coverage. This may fix the Mac bot finally, as with this it passes for me on the stack size I think Macs have by default. --- src/wasm-interpreter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm-interpreter.h') diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index 7dd9688c3..ca9b35bab 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -45,7 +45,7 @@ using namespace cashew; extern Name WASM, RETURN_FLOW; -enum { maxInterpreterDepth = 250 }; +enum { maxInterpreterDepth = 50 }; // Stuff that flows around during executing expressions: a literal, or a change // in control flow. -- cgit v1.2.3