wasm-micro-runtime/core/iwasm/common
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
..
arch Add support for universal binaries on OSX (#2060) 2023-03-30 09:53:07 +08:00
gc Enhance GC subtyping checks (#3317) 2024-04-18 12:32:01 +08:00
iwasm_common.cmake Add support for universal binaries on OSX (#2060) 2023-03-30 09:53:07 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00
wasm_application.c Enhance GC subtyping checks (#3317) 2024-04-18 12:32:01 +08:00
wasm_blocking_op.c Implement async termination of blocking thread (#2516) 2023-09-20 18:11:52 +08:00
wasm_c_api_internal.h Return stack frames of crashed thread when using wasm-c-api (#2908) 2024-01-11 12:13:05 +08:00
wasm_c_api.c Enhance wasm loading with LoadArgs and support module names (#3265) 2024-04-07 15:04:35 +08:00
wasm_exec_env.c Refactor APIs and data structures as preliminary work for Memory64 (#3209) 2024-03-12 11:38:50 +08:00
wasm_exec_env.h thread mgr: Free aux stack only when it was allocated (#3282) 2024-04-08 09:06:49 +08:00
wasm_memory.c User defined memory allocator for different purposes (#3316) 2024-04-18 19:40:57 +08:00
wasm_memory.h Implement memory64 for classic interpreter (#3266) 2024-04-02 15:22:07 +08:00
wasm_native.c Enhance GC subtyping checks (#3317) 2024-04-18 12:32:01 +08:00
wasm_native.h Implement GC (Garbage Collection) feature for interpreter, AOT and LLVM-JIT (#3125) 2024-02-06 20:47:11 +08:00
wasm_runtime_common.c Enhance wasm loading with LoadArgs and support module names (#3265) 2024-04-07 15:04:35 +08:00
wasm_runtime_common.h Implement memory64 for classic interpreter (#3266) 2024-04-02 15:22:07 +08:00
wasm_shared_memory.c Fix inconsistent coding convention (#3171) 2024-02-22 10:40:50 +08:00
wasm_shared_memory.h Refine lock/unlock shared memory (#2682) 2023-10-31 11:46:03 +08:00
wasm_suspend_flags.h Do not inherit WASM_SUSPEND_FLAG_BLOCKING from the parent thread (#3051) 2024-01-19 09:55:01 +08:00