|
@@ -428,7 +428,7 @@ wasm_runtime_register_module(const char *module_name, wasm_module_t module,
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Check if there is already a loaded module named module_name in the
|
|
* Check if there is already a loaded module named module_name in the
|
|
|
- * runtime. Repeately loading a module with the same name is not allowed.
|
|
|
|
|
|
|
+ * runtime. Repeatedly loading a module with the same name is not allowed.
|
|
|
*
|
|
*
|
|
|
* @param module_name indicate a name
|
|
* @param module_name indicate a name
|
|
|
*
|
|
*
|
|
@@ -451,7 +451,7 @@ wasm_runtime_find_module_registered(const char *module_name);
|
|
|
* @param buf the byte buffer which contains the WASM/AOT binary data,
|
|
* @param buf the byte buffer which contains the WASM/AOT binary data,
|
|
|
* note that the byte buffer must be writable since runtime may
|
|
* note that the byte buffer must be writable since runtime may
|
|
|
* change its content for footprint and performance purpose, and
|
|
* change its content for footprint and performance purpose, and
|
|
|
- * it must be referencable until wasm_runtime_unload is called
|
|
|
|
|
|
|
+ * it must be referenceable until wasm_runtime_unload is called
|
|
|
* @param size the size of the buffer
|
|
* @param size the size of the buffer
|
|
|
* @param error_buf output of the exception info
|
|
* @param error_buf output of the exception info
|
|
|
* @param error_buf_size the size of the exception string
|
|
* @param error_buf_size the size of the exception string
|
|
@@ -921,7 +921,7 @@ wasm_runtime_call_wasm_v(wasm_exec_env_t exec_env,
|
|
|
* @param exec_env the execution environment to call the function
|
|
* @param exec_env the execution environment to call the function
|
|
|
* which must be created from wasm_create_exec_env()
|
|
* which must be created from wasm_create_exec_env()
|
|
|
* @param element_index the function reference index, usually
|
|
* @param element_index the function reference index, usually
|
|
|
- * prvovided by the caller of a registed native function
|
|
|
|
|
|
|
+ * provided by the caller of a registered native function
|
|
|
* @param argc the number of arguments
|
|
* @param argc the number of arguments
|
|
|
* @param argv the arguments. If the function method has return value,
|
|
* @param argv the arguments. If the function method has return value,
|
|
|
* the first (or first two in case 64-bit return value) element of
|
|
* the first (or first two in case 64-bit return value) element of
|
|
@@ -1169,7 +1169,7 @@ wasm_runtime_validate_native_addr(wasm_module_inst_t module_inst,
|
|
|
* stable.)
|
|
* stable.)
|
|
|
*
|
|
*
|
|
|
* @param module_inst the WASM module instance
|
|
* @param module_inst the WASM module instance
|
|
|
- * @param app_offset the app adress
|
|
|
|
|
|
|
+ * @param app_offset the app address
|
|
|
*
|
|
*
|
|
|
* @return the native address converted
|
|
* @return the native address converted
|
|
|
*/
|
|
*/
|
|
@@ -1439,7 +1439,7 @@ WASM_RUNTIME_API_EXTERN double
|
|
|
wasm_runtime_sum_wasm_exec_time(wasm_module_inst_t module_inst);
|
|
wasm_runtime_sum_wasm_exec_time(wasm_module_inst_t module_inst);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * Return execution time in ms of a given wasm funciton with
|
|
|
|
|
|
|
+ * Return execution time in ms of a given wasm function with
|
|
|
* func_name. If the function is not found, return 0.
|
|
* func_name. If the function is not found, return 0.
|
|
|
*
|
|
*
|
|
|
* @param module_inst the WASM module instance to profile
|
|
* @param module_inst the WASM module instance to profile
|
|
@@ -1706,7 +1706,7 @@ wasm_runtime_set_enlarge_mem_error_callback(
|
|
|
* to all threads in the cluster.
|
|
* to all threads in the cluster.
|
|
|
* It's an undefined behavior if multiple threads in a cluster call
|
|
* It's an undefined behavior if multiple threads in a cluster call
|
|
|
* wasm_runtime_set_context_spread on the same key
|
|
* wasm_runtime_set_context_spread on the same key
|
|
|
- * simultaneously. It's a caller's resposibility to perform necessary
|
|
|
|
|
|
|
+ * simultaneously. It's a caller's responsibility to perform necessary
|
|
|
* serialization if necessary. For example:
|
|
* serialization if necessary. For example:
|
|
|
*
|
|
*
|
|
|
* if (wasm_runtime_get_context(inst, key) == NULL) {
|
|
* if (wasm_runtime_get_context(inst, key) == NULL) {
|
|
@@ -1726,7 +1726,7 @@ wasm_runtime_set_enlarge_mem_error_callback(
|
|
|
*
|
|
*
|
|
|
* Note: dynamic key create/destroy while instances are live is not
|
|
* Note: dynamic key create/destroy while instances are live is not
|
|
|
* implemented as of writing this.
|
|
* implemented as of writing this.
|
|
|
- * it's caller's resposibility to ensure destorying all module instances
|
|
|
|
|
|
|
+ * it's caller's responsibility to ensure destroying all module instances
|
|
|
* before calling wasm_runtime_create_context_key or
|
|
* before calling wasm_runtime_create_context_key or
|
|
|
* wasm_runtime_destroy_context_key.
|
|
* wasm_runtime_destroy_context_key.
|
|
|
* otherwise, it's an undefined behavior.
|
|
* otherwise, it's an undefined behavior.
|
|
@@ -1787,7 +1787,7 @@ wasm_runtime_get_context(wasm_module_inst_t inst, void *key);
|
|
|
*
|
|
*
|
|
|
* The actual wake up mechanism used by `os_wakeup_blocking_op` is
|
|
* The actual wake up mechanism used by `os_wakeup_blocking_op` is
|
|
|
* platform-dependent. It might impose some platform-dependent restrictions
|
|
* platform-dependent. It might impose some platform-dependent restrictions
|
|
|
- * on the implementation of the blocking opearation.
|
|
|
|
|
|
|
+ * on the implementation of the blocking operation.
|
|
|
*
|
|
*
|
|
|
* For example, on POSIX-like platforms, a signal (by default SIGUSR1) is
|
|
* For example, on POSIX-like platforms, a signal (by default SIGUSR1) is
|
|
|
* used. The signal delivery configurations (eg. signal handler, signal mask,
|
|
* used. The signal delivery configurations (eg. signal handler, signal mask,
|