Allow to set native stack boundary to exec_env (#3862)

Add runtime API wasm_runtime_set_native_stack_boundary.

p.s. https://github.com/bytecodealliance/wasm-micro-runtime/issues/3816
This commit is contained in:
Wenyong Huang
2024-10-18 12:49:57 +08:00
committed by GitHub
parent 7e625a0624
commit 74d2427fdc
5 changed files with 43 additions and 2 deletions

View File

@ -136,6 +136,10 @@ typedef struct WASMExecEnv {
void *user_data;
/* The boundary of native stack set by host embedder. It is used
if it is not NULL when calling wasm functions. */
uint8 *user_native_stack_boundary;
/* The native thread handle of current thread */
korp_tid handle;