Skip to content

Commit 0d346ed

Browse files
author
Hritik Gupta
committed
fix: added macro check
1 parent 92b3d04 commit 0d346ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/iwasm/common/wasm_runtime_common.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2190,10 +2190,13 @@ wasm_set_exception(WASMModuleInstance *module_inst, const char *exception)
21902190
}
21912191

21922192
#if WASM_ENABLE_THREAD_MGR != 0
2193+
2194+
#if WASM_ENABLE_SHARED_MEMORY
21932195
if (exception) {
21942196
notify_stale_threads_on_exception(
21952197
(WASMModuleInstanceCommon *)module_inst);
21962198
}
2199+
#endif
21972200
exec_env =
21982201
wasm_clusters_search_exec_env((WASMModuleInstanceCommon *)module_inst);
21992202
if (exec_env) {

0 commit comments

Comments
 (0)