Skip to content

Commit

Permalink
spec-test-script/runtest.py: Reduce stack size for aot w/o gc (#3653)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt authored Jul 23, 2024
1 parent d7521ee commit 79dacfc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/wamr-test-suites/spec-test-script/runtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 79dacfc

Please sign in to comment.