Skip to content

Commit 79dacfc

Browse files
authored
spec-test-script/runtest.py: Reduce stack size for aot w/o gc (#3653)
1 parent d7521ee commit 79dacfc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/wamr-test-suites/spec-test-script/runtest.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,13 @@ def run_wasm_with_repl(wasm_tempfile, aot_tempfile, opts, r):
11701170
# cf. https://github.com/bytecodealliance/wasm-micro-runtime/issues/2231
11711171
cmd_iwasm.append("--stack-size=10485760") # 10MB (!)
11721172
else:
1173-
cmd_iwasm.append("--stack-size=131072") # 128KB
1173+
if opts.aot:
1174+
# Note: aot w/o gc doesn't require the interpreter stack at all.
1175+
# Note: 1 is the minimum value we can specify because 0 means
1176+
# the default.
1177+
cmd_iwasm.append("--stack-size=1")
1178+
else:
1179+
cmd_iwasm.append("--stack-size=131072") # 128KB
11741180
if opts.verbose:
11751181
cmd_iwasm.append("-v=5")
11761182
cmd_iwasm.append(tmpfile)

0 commit comments

Comments
 (0)