Skip to content

Commit 4675c70

Browse files
author
Hritik Gupta
committed
fix: made wait_map_without_lock scoped local
1 parent 0d346ed commit 4675c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/iwasm/common/wasm_shared_memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ typedef struct AtomicWaitNode {
3232

3333
/* Atomic wait map */
3434
static HashMap *wait_map;
35-
static HashMap *wait_map_without_lock;
3635

3736
static uint32
3837
wait_address_hash(void *address);
@@ -107,6 +106,7 @@ void
107106
notify_stale_threads_on_exception(WASMModuleInstanceCommon *module_inst)
108107
{
109108

109+
static HashMap *wait_map_without_lock;
110110
wait_map_without_lock = bh_hash_map_create(
111111
32, false, (HashFunc)wait_address_hash,
112112
(KeyEqualFunc)wait_address_equal, NULL, destroy_wait_info);

0 commit comments

Comments
 (0)