wasm-micro-runtime/core/shared/platform/common/posix
Wenyong Huang b6adec373e
shared-platform: Remove dependency on shared-utils' bh_memory_remap_slow (#3153)
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);
```
2024-02-17 13:44:33 +08:00
..
platform_api_posix.cmake shared-platform: Remove dependency on shared-utils' bh_memory_remap_slow (#3153) 2024-02-17 13:44:33 +08:00
posix_blocking_op.c Remove a lot of "unused parameter" warnings (#3075) 2024-01-24 11:21:13 +08:00
posix_clock.c Remove a lot of "unused parameter" warnings (#3075) 2024-01-24 11:21:13 +08:00
posix_file.c Don't redefine D_INO if already defined (#3036) 2024-01-16 22:28:06 +08:00
posix_malloc.c Add bh_print_proc_mem() to dump memory info of current process (#1734) 2022-11-25 08:33:44 +08:00
posix_memmap.c shared-platform: Remove dependency on shared-utils' bh_memory_remap_slow (#3153) 2024-02-17 13:44:33 +08:00
posix_sleep.c Implement os_usleep for posix (#2517) 2023-09-01 12:10:54 +08:00
posix_socket.c Fix some issues reported by CodeQL (#3064) 2024-01-23 21:38:30 +08:00
posix_thread.c Fix AOT compilation on MacOS (#3102) 2024-01-31 20:06:22 +08:00
posix_time.c Enhancements on wasm function execution time statistic (#2985) 2024-01-17 09:51:54 +08:00