wasm-micro-runtime/product-mini/platforms
dongsheng28849455 ba59e56e19
User defined memory allocator for different purposes (#3316)
Some issues are related with memory fragmentation, which may cause
the linear memory cannot be allocated. In WAMR, the memory managed
by the system is often trivial, but linear memory usually directly allocates
a large block and often remains unchanged for a long time. Their sensitivity
and contribution to fragmentation are different, which is suitable for
different allocation strategies. If we can control the linear memory's allocation,
do not make it from system heap, the overhead of heap management might
be avoided.

Add `mem_alloc_usage_t usage` as the first argument for user defined
malloc/realloc/free functions when `WAMR_BUILD_ALLOC_WITH_USAGE` cmake
variable is set as 1, and make passing `Alloc_For_LinearMemory` to the
argument when allocating the linear memory.
2024-04-18 19:40:57 +08:00
..
alios-things Fix data/elem drop (#2747) 2023-11-18 08:50:16 +08:00
android Make android platform's cmake flags configurable (#3239) 2024-03-21 11:08:40 +08:00
common Fix typos of CIDR in docs and help text (#2851) 2023-12-04 11:38:54 +08:00
cosmopolitan cosmopolitan: Update compiler and update platform_internal.h (#3079) 2024-01-24 16:04:48 +08:00
darwin Fix build error with LLVM 16 (#2259) 2023-06-06 13:45:18 +08:00
esp-idf Update esp-idf platform support in main (#3304) 2024-04-11 19:46:34 +08:00
freebsd Fix build error with LLVM 16 (#2259) 2023-06-06 13:45:18 +08:00
ios Fix build error with LLVM 16 (#2259) 2023-06-06 13:45:18 +08:00
linux Implement GC (Garbage Collection) feature for interpreter, AOT and LLVM-JIT (#3125) 2024-02-06 20:47:11 +08:00
linux-sgx Implement GC (Garbage Collection) feature for interpreter, AOT and LLVM-JIT (#3125) 2024-02-06 20:47:11 +08:00
nuttx User defined memory allocator for different purposes (#3316) 2024-04-18 19:40:57 +08:00
posix User defined memory allocator for different purposes (#3316) 2024-04-18 19:40:57 +08:00
riot Normalize how the global heap pool is configured across iwasm apps (#1628) 2022-10-25 21:36:24 +08:00
rt-thread Fix compiling error for RT-Thread (#2569) 2023-09-21 13:33:03 +08:00
vxworks Enhance cmake makefiles (#1390) 2022-08-18 16:27:01 +08:00
windows Fix warnings/issues reported in Windows and by CodeQL/Coverity (#3275) 2024-04-07 11:57:31 +08:00
zephyr/simple Remove unused argument in wasm_runtime_lookup_function and refactor WASMModuleInstance (#3218) 2024-03-13 12:28:45 +08:00