Fix windows aot loader fail to resolve symbol issue (#540)

This commit is contained in:
Jonathan
2021-02-23 07:55:50 -05:00
committed by GitHub
parent fc50404115
commit 79afa493aa
6 changed files with 40 additions and 25 deletions

View File

@ -2264,7 +2264,7 @@ aot_get_module_inst_mem_consumption(const AOTModuleInstance *module_inst,
mem_conspn->memories_size +=
mem_inst->num_bytes_per_page * mem_inst->cur_page_count;
mem_conspn->app_heap_size =
mem_inst->heap_data_end.ptr - mem_inst->heap_data.ptr;
(uint8 *) mem_inst->heap_data_end.ptr - (uint8 *) mem_inst->heap_data.ptr;
/* size of app heap structure */
mem_conspn->memories_size +=
mem_allocator_get_heap_struct_size();