@@ -977,7 +977,7 @@ execute_post_inst_function(WASMModuleInstance *module_inst)
977977 return true;
978978
979979 return wasm_create_exec_env_and_call_function (module_inst , post_inst_func ,
980- 0 , NULL , false );
980+ 0 , NULL );
981981}
982982
983983#if WASM_ENABLE_BULK_MEMORY != 0
@@ -1006,7 +1006,7 @@ execute_memory_init_function(WASMModuleInstance *module_inst)
10061006 return true;
10071007
10081008 return wasm_create_exec_env_and_call_function (module_inst , memory_init_func ,
1009- 0 , NULL , false );
1009+ 0 , NULL );
10101010}
10111011#endif
10121012
@@ -1021,8 +1021,7 @@ execute_start_function(WASMModuleInstance *module_inst)
10211021 bh_assert (!func -> is_import_func && func -> param_cell_num == 0
10221022 && func -> ret_cell_num == 0 );
10231023
1024- return wasm_create_exec_env_and_call_function (module_inst , func , 0 , NULL ,
1025- false);
1024+ return wasm_create_exec_env_and_call_function (module_inst , func , 0 , NULL );
10261025}
10271026
10281027static bool
@@ -1066,11 +1065,11 @@ execute_malloc_function(WASMModuleInstance *module_inst,
10661065#endif
10671066 {
10681067 ret = wasm_create_exec_env_and_call_function (module_inst , malloc_func ,
1069- argc , argv , false );
1068+ argc , argv );
10701069
10711070 if (retain_func && ret ) {
1072- ret = wasm_create_exec_env_and_call_function (
1073- module_inst , retain_func , 1 , argv , false );
1071+ ret = wasm_create_exec_env_and_call_function (module_inst ,
1072+ retain_func , 1 , argv );
10741073 }
10751074 }
10761075
@@ -1099,7 +1098,7 @@ execute_free_function(WASMModuleInstance *module_inst,
10991098#endif
11001099 {
11011100 return wasm_create_exec_env_and_call_function (module_inst , free_func , 1 ,
1102- argv , false );
1101+ argv );
11031102 }
11041103}
11051104
@@ -1159,7 +1158,7 @@ sub_module_instantiate(WASMModule *module, WASMModuleInstance *module_inst,
11591158 wasm_lookup_function (sub_module_inst , "_initialize" , NULL );
11601159 if (initialize
11611160 && !wasm_create_exec_env_and_call_function (
1162- sub_module_inst , initialize , 0 , NULL , false )) {
1161+ sub_module_inst , initialize , 0 , NULL )) {
11631162 set_error_buf (error_buf , error_buf_size ,
11641163 "Call _initialize failed " );
11651164 goto failed ;
@@ -2032,8 +2031,7 @@ wasm_call_function(WASMExecEnv *exec_env, WASMFunctionInstance *function,
20322031bool
20332032wasm_create_exec_env_and_call_function (WASMModuleInstance * module_inst ,
20342033 WASMFunctionInstance * func ,
2035- unsigned argc , uint32 argv [],
2036- bool enable_debug )
2034+ unsigned argc , uint32 argv [])
20372035{
20382036 WASMExecEnv * exec_env = NULL , * existing_exec_env = NULL ;
20392037 bool ret ;
@@ -2052,14 +2050,6 @@ wasm_create_exec_env_and_call_function(WASMModuleInstance *module_inst,
20522050 wasm_set_exception (module_inst , "allocate memory failed" );
20532051 return false;
20542052 }
2055-
2056- #if WASM_ENABLE_THREAD_MGR != 0
2057- #if WASM_ENABLE_DEBUG_INTERP != 0
2058- if (enable_debug ) {
2059- wasm_runtime_start_debug_instance (exec_env );
2060- }
2061- #endif
2062- #endif
20632053 }
20642054
20652055 ret = wasm_call_function (exec_env , func , argc , argv );
0 commit comments