Fix fast-jit accessing shared memory's fields issue (#2841)
For shared memory, runtime should get the memories pointer from module_inst first, then get memory instance from memories array, and then get the fields of the memory instance.
This commit is contained in:
@ -866,6 +866,8 @@ typedef struct JitValueSlot {
|
||||
typedef struct JitMemRegs {
|
||||
/* The following registers should be re-loaded after
|
||||
memory.grow, callbc and callnative */
|
||||
JitReg memory_inst;
|
||||
JitReg cur_page_count;
|
||||
JitReg memory_data;
|
||||
JitReg memory_data_end;
|
||||
JitReg mem_bound_check_1byte;
|
||||
|
||||
Reference in New Issue
Block a user