implement atomics opcodes for interpreter (#344)

This commit is contained in:
Xu Jun
2020-08-10 19:43:58 +08:00
committed by GitHub
parent 1b6ddb37d0
commit 6aeefbebb2
10 changed files with 902 additions and 3 deletions

View File

@ -50,6 +50,12 @@ typedef struct WASMMemoryInstance {
/* to indicate which module instance create it */
WASMModuleInstance *owner;
#endif
#if WASM_ENABLE_SHARED_MEMORY != 0
/* mutex lock for the memory, used in atomic operation */
korp_mutex mem_lock;
#endif
/* Base address, the layout is:
heap_data + memory data
memory data init size is: num_bytes_per_page * cur_page_count