@@ -467,14 +467,14 @@ wasm_runtime_set_wasi_ns_lookup_pool(wasm_module_t module, const char *ns_lookup
467467 * Instantiate a WASM module.
468468 *
469469 * @param module the WASM module to instantiate
470- * @param stack_size the default stack size of the module instance when the
470+ * @param default_stack_size the default stack size of the module instance when the
471471 * exec env's operation stack isn't created by user, e.g. API
472472 * wasm_application_execute_main() and wasm_application_execute_func()
473473 * create the operation stack internally with the stack size specified
474474 * here. And API wasm_runtime_create_exec_env() creates the operation
475475 * stack with stack size specified by its parameter, the stack size
476476 * specified here is ignored.
477- * @param heap_size the default heap size of the module instance, a heap will
477+ * @param host_managed_heap_size the default heap size of the module instance, a heap will
478478 * be created besides the app memory space. Both wasm app and native
479479 * function can allocate memory from the heap.
480480 * @param error_buf buffer to output the error info if failed
@@ -484,7 +484,7 @@ wasm_runtime_set_wasi_ns_lookup_pool(wasm_module_t module, const char *ns_lookup
484484 */
485485WASM_RUNTIME_API_EXTERN wasm_module_inst_t
486486wasm_runtime_instantiate (const wasm_module_t module ,
487- uint32_t stack_size , uint32_t heap_size ,
487+ uint32_t default_stack_size , uint32_t host_managed_heap_size ,
488488 char * error_buf , uint32_t error_buf_size );
489489
490490/**
0 commit comments