mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +00:00
b6adec373e
As an original design rule, the code in `core/shared/platform` should not rely on the code in `core/share/utils`. In the current implementation, platform layer calls function `bh_memory_remap_slow` in utils layer. This PR adds inline function `os_mremap_slow` in platform_api_vmcore.h, and lets os_remap call it if mremap fails. And remove bh_memutils.h/c as as they are unused. And resolve the compilation warning in wamrc: ```bash core/shared/platform/common/posix/posix_memmap.c:255:16: warning: implicit declaration of function ‘bh_memory_remap_slow’ 255 | return bh_memory_remap_slow(old_addr, old_size, new_size); ``` |
||
---|---|---|
.. | ||
uncommon | ||
bh_assert.c | ||
bh_assert.h | ||
bh_atomic.h | ||
bh_bitmap.c | ||
bh_bitmap.h | ||
bh_common.c | ||
bh_common.h | ||
bh_hashmap.c | ||
bh_hashmap.h | ||
bh_list.c | ||
bh_list.h | ||
bh_log.c | ||
bh_log.h | ||
bh_platform.h | ||
bh_queue.c | ||
bh_queue.h | ||
bh_vector.c | ||
bh_vector.h | ||
gnuc.h | ||
runtime_timer.c | ||
runtime_timer.h | ||
SConscript | ||
shared_utils.cmake |