wasm-micro-runtime/core/shared/utils
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
..
uncommon Enable Windows MinGW support (#1000) 2022-02-06 13:20:38 +08:00
bh_assert.c Use logger for runtime error/debug prints (#3097) 2024-02-06 13:02:54 +08:00
bh_assert.h Fix bh_assert for 64-bit platforms (#2071) 2023-03-28 12:18:39 +08:00
bh_atomic.h Refine atomic operation flags in bh_atomic.h (#2780) 2023-11-18 08:59:58 +08:00
bh_bitmap.c Fix data/elem drop (#2747) 2023-11-18 08:50:16 +08:00
bh_bitmap.h Fix compilation warnings on Windows (#2868) 2023-12-06 16:12:33 +08:00
bh_common.c Remove unnecessary and extra zero length check in mem functions' macro (#2428) 2023-08-08 08:52:25 +08:00
bh_common.h Remove unnecessary and extra zero length check in mem functions' macro (#2428) 2023-08-08 08:52:25 +08:00
bh_hashmap.c Fix some issues reported by CodeQL (#3064) 2024-01-23 21:38:30 +08:00
bh_hashmap.h Limit the minimal size of bh_hashmap (#2073) 2023-03-28 14:50:31 +08:00
bh_list.c Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
bh_list.h Fix issue in multi-thread sample (#1458) 2022-09-07 12:56:50 +08:00
bh_log.c Forward log and log level to custom bh_log callback (#3070) 2024-01-24 13:05:07 +08:00
bh_log.h Forward log and log level to custom bh_log callback (#3070) 2024-01-24 13:05:07 +08:00
bh_platform.h Move generic parts of wasm_suspend_flags.h to bh_atomic.h (#2393) 2023-07-27 21:37:23 +08:00
bh_queue.c Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
bh_queue.h Suppress the warnings when building with GCC11 (#1622) 2022-10-20 21:26:57 +08:00
bh_vector.c Clear compilation warnings on Windows (#1307) 2022-07-21 09:32:28 +08:00
bh_vector.h Enable lock for Vector to protect wasm-c-api read/write/extend operations (#1010) 2022-03-23 11:42:57 +08:00
gnuc.h Implement suspend flags as atomic variable (#2361) 2023-07-21 08:27:09 +08:00
runtime_timer.c Enhancements on wasm function execution time statistic (#2985) 2024-01-17 09:51:54 +08:00
runtime_timer.h Suppress the warnings when building with GCC11 (#1622) 2022-10-20 21:26:57 +08:00
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00
shared_utils.cmake re-org platform APIs, simplify porting process (#201) 2020-03-16 16:43:57 +08:00