From 79dacfcead5a3ed0f24f4a58f07f8554fc488ad8 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 24 Jul 2024 00:08:26 +0900 Subject: [PATCH] spec-test-script/runtest.py: Reduce stack size for aot w/o gc (#3653) --- tests/wamr-test-suites/spec-test-script/runtest.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/wamr-test-suites/spec-test-script/runtest.py b/tests/wamr-test-suites/spec-test-script/runtest.py index b7595fb0b5..709ca01711 100755 --- a/tests/wamr-test-suites/spec-test-script/runtest.py +++ b/tests/wamr-test-suites/spec-test-script/runtest.py @@ -1170,7 +1170,13 @@ def run_wasm_with_repl(wasm_tempfile, aot_tempfile, opts, r): # cf. https://github.com/bytecodealliance/wasm-micro-runtime/issues/2231 cmd_iwasm.append("--stack-size=10485760") # 10MB (!) else: - cmd_iwasm.append("--stack-size=131072") # 128KB + if opts.aot: + # Note: aot w/o gc doesn't require the interpreter stack at all. + # Note: 1 is the minimum value we can specify because 0 means + # the default. + cmd_iwasm.append("--stack-size=1") + else: + cmd_iwasm.append("--stack-size=131072") # 128KB if opts.verbose: cmd_iwasm.append("-v=5") cmd_iwasm.append(tmpfile)