Skip to content

Conversation

@yamt
Copy link
Contributor

@yamt yamt commented Aug 15, 2022

Unbreak builds with a bit older nuttx/apps for now.

Note: The default value here (0) was chosen to match the new default
in nuttx/apps, which is different from the old value used before
the introduction of WASM_STACK_GUARD_SIZE. (1024)

Unbreak builds with a bit older nuttx/apps for now.

Note: The default value here (0) was chosen to match the new default
in nuttx/apps, which is different from the old value used before
the introduction of WASM_STACK_GUARD_SIZE. (1024)
@no1wudi
Copy link
Collaborator

no1wudi commented Aug 15, 2022

WASM_STACK_GUARD_SIZE is a simple rename of RESERVED_BYTES_TO_NATIVE_STACK_BOUNDARY which is also not defined by NuttX, so I think it's OK to keep its origin behavior (use default 1024 for safety).

Is there any build break on older version of NuttX ?

@yamt
Copy link
Contributor Author

yamt commented Aug 15, 2022

WASM_STACK_GUARD_SIZE is a simple rename of RESERVED_BYTES_TO_NATIVE_STACK_BOUNDARY which is also not defined by NuttX, so I think it's OK to keep its origin behavior (use default 1024 for safety).

i prefer to be consistent with the value used by new version:
https://github.com/apache/incubator-nuttx-apps/blob/a3ccf59204c0716be18b1d2d43ad417ce5fd1c06/interpreters/wamr/Kconfig#L84-L89

Is there any build break on older version of NuttX ?

yes. something like the following.

wamr/core/iwasm/common/wasm_exec_env.c:195:43: error: use of undeclared identifier 'CONFIG_INTERPRETERS_WAMR_STACK_GUARD_SIZE'

@wenyongh wenyongh merged commit e0a943e into bytecodealliance:main Aug 15, 2022
loganek pushed a commit to loganek/wasm-micro-runtime that referenced this pull request Aug 31, 2022
Unbreak builds with a bit older nuttx/apps for now.

Note: The default value here (0) was chosen to match the new default
in nuttx/apps, which is different from the old value used before
the introduction of WASM_STACK_GUARD_SIZE. (1024)
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
Unbreak builds with a bit older nuttx/apps for now.

Note: The default value here (0) was chosen to match the new default
in nuttx/apps, which is different from the old value used before
the introduction of WASM_STACK_GUARD_SIZE. (1024)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants