Implement wasm_runtime_init_thread_env for Windows platform (#683)
Implement wasm_runtime_init_thread_env() for Windows platform by calling os_thread_env_init(): if current thread is created by developer himself but not runtime, developer should call wasm_runtime_init_thread_env() to init the thread environment before calling wasm function, and call wasm_runtime_destroy_thread_env() before thread exits. And clear compile warnings for Windows platform, fix compile error for AliOS-Things platform Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
@ -2485,14 +2485,14 @@ wasm_interp_dump_call_stack(struct WASMExecEnv *exec_env)
|
||||
/* place holder, will overwrite it in wasm_c_api */
|
||||
frame.instance = module_inst;
|
||||
frame.module_offset = 0;
|
||||
frame.func_index = func_inst - module_inst->functions;
|
||||
frame.func_index = (uint32)(func_inst - module_inst->functions);
|
||||
|
||||
func_code_base = wasm_get_func_code(func_inst);
|
||||
if (!cur_frame->ip || !func_code_base) {
|
||||
frame.func_offset = 0;
|
||||
}
|
||||
else {
|
||||
frame.func_offset = cur_frame->ip - func_code_base;
|
||||
frame.func_offset = (uint32)(cur_frame->ip - func_code_base);
|
||||
}
|
||||
|
||||
/* look for the function name */
|
||||
|
||||
Reference in New Issue
Block a user