Skip to content

Commit 415d714

Browse files
committed
wamr: bump the default stack guard size
using 0 by default seems a bit too aggressive to me. 1024 here is what would have been used before this kconfig knob was introduced by apache#1259. It also matches some expectations in the recent wamrc. https://github.com/bytecodealliance/wasm-micro-runtime/blob/40b430fd240ad45f5c7a7dd0239fa2425e7c294e/core/iwasm/compilation/aot_emit_aot_file.c#L2672-L2678
1 parent 730370e commit 415d714

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

interpreters/wamr/Kconfig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,9 @@ config INTERPRETERS_WAMR_ENABLE_SPEC_TEST
103103

104104
config INTERPRETERS_WAMR_STACK_GUARD_SIZE
105105
int "Custom stack guard size"
106-
default 0
106+
default 1024
107107
---help---
108-
Reserve some space in stack as guard to detect stack overflow,
109-
use stack base by default but may not safe enough.
108+
Reserve some space in stack as guard to detect stack overflow.
110109

111110
config INTERPRETERS_WAMR_THREAD_MGR
112111
bool "Enable thread manager"

0 commit comments

Comments
 (0)