samples/native-stack-overflow/wasm-apps: comment

This commit is contained in:
YAMAMOTO Takashi 2024-04-22 12:43:11 +09:00
parent 230213b3ad
commit b7cf6d0587

View File

@ -44,6 +44,25 @@ test(uint32_t native_stack, uint32_t recurse_count)
{ {
uint32_t ret; uint32_t ret;
ret = host_consume_stack_and_call_indirect(cb, 321, native_stack); ret = host_consume_stack_and_call_indirect(cb, 321, native_stack);
/*
* ------ os_thread_get_stack_boundary
* ^
* |
* | "native_stack" bytes of stack left by
* | host_consume_stack_and_call_indirect
* |
* | ^
* | |
* | | consume_stack_cb (interpreter or aot)
* v |
* ^
* |
* | host_consume_stack_and_call_indirect
* |
*
*
*/
ret = host_consume_stack_and_call_indirect(consume_stack_cb, recurse_count, ret = host_consume_stack_and_call_indirect(consume_stack_cb, recurse_count,
native_stack); native_stack);
#if 0 /* notyet */ #if 0 /* notyet */