Fix native stack overflow check failed in interpreter (#992)
Increase default/min native stack size when UVWASI is enabled as UVWASI requires larger native stack size. Increase the reserved bytes to the native thread stack boundary to better detect the native stack overflow. Set WASM_DISABLE_HW_BOUND_CHECK to 0 when interpreter is enabled and AOT is disabled, as memory access boundary check with hardware trap is only enabled in AOT/JIT mode.
This commit is contained in:
@ -198,6 +198,10 @@ endif ()
|
||||
if (WAMR_DISABLE_HW_BOUND_CHECK EQUAL 1)
|
||||
add_definitions (-DWASM_DISABLE_HW_BOUND_CHECK=1)
|
||||
message (" Hardware boundary check disabled")
|
||||
elseif (NOT WAMR_BUILD_AOT EQUAL 1)
|
||||
# Enable memory access boundary check with hardware trap
|
||||
# only when AOT/JIT is enabled
|
||||
add_definitions (-DWASM_DISABLE_HW_BOUND_CHECK=1)
|
||||
else ()
|
||||
add_definitions (-DWASM_DISABLE_HW_BOUND_CHECK=0)
|
||||
endif ()
|
||||
|
||||
Reference in New Issue
Block a user