Skip to content

Commit 76d1be0

Browse files
Rename parameter names in wasm_runtime_instantiate (bytecodealliance#2045)
1 parent 6822287 commit 76d1be0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

core/iwasm/common/wasm_runtime_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@ wasm_runtime_deinstantiate_internal(WASMModuleInstanceCommon *module_inst,
508508

509509
/* See wasm_export.h for description */
510510
WASM_RUNTIME_API_EXTERN WASMModuleInstanceCommon *
511-
wasm_runtime_instantiate(WASMModuleCommon *module, uint32 stack_size,
512-
uint32 heap_size, char *error_buf,
511+
wasm_runtime_instantiate(WASMModuleCommon *module, uint32 default_stack_size,
512+
uint32 host_managed_heap_size, char *error_buf,
513513
uint32 error_buf_size);
514514

515515
/* See wasm_export.h for description */

core/iwasm/include/wasm_export.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*/
485485
WASM_RUNTIME_API_EXTERN wasm_module_inst_t
486486
wasm_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

Comments
 (0)