mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-07-15 08:48:33 +00:00
remove unnecessary memset after mmap
This commit is contained in:
parent
be8ba9e1fd
commit
684213c7af
|
@ -525,7 +525,8 @@ memory_instantiate(AOTModuleInstance *module_inst, AOTModule *module,
|
||||||
os_munmap(mapped_mem, map_size);
|
os_munmap(mapped_mem, map_size);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
memset(p, 0, (uint32)total_size);
|
/* Newly allocated pages are filled with zero by the OS, we don't fill it
|
||||||
|
* again here */
|
||||||
#endif /* end of OS_ENABLE_HW_BOUND_CHECK */
|
#endif /* end of OS_ENABLE_HW_BOUND_CHECK */
|
||||||
|
|
||||||
memory_inst->module_type = Wasm_Module_AoT;
|
memory_inst->module_type = Wasm_Module_AoT;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user