Enhance ems memory allocator (#544)
Enhance ems memory allocator (#544)

The total size actually allocated by ealloc_hmu() might be larger than the size required to allocate, we reset the total size after allocating, so that if heap verification feature is enabled, the data to verify can be written to the right place of the suffix verification area. And in gc_realloc_vo_internal(), free the heap lock until the original data is copied to new object to return.

Signed-off-by: Wenyong Huang <72d239bf6f56acd79b6650c7c7b18a0cf25756b4@intel.com>
bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime,bytecodealliance/wasm-micro-runtime