wasm-micro-runtime/doc
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
..
pics Update document and fix wasm_runtime_call_wasm_a issue (#1005) 2022-02-14 17:36:38 +08:00
build_wamr.md User defined memory allocator for different purposes (#3316) 2024-04-18 19:40:57 +08:00
build_wasm_app.md Fix download link for wasi-sdk (#3077) 2024-01-24 13:42:45 +08:00
devcontainer.md Dockerfile lint errors fix (#1493) 2022-09-22 13:06:11 +08:00
embed_wamr_spawn_api.md embed_wamr.md: Improvements about threads (#2420) 2023-08-04 09:28:30 +08:00
embed_wamr.md Remove unused argument in wasm_runtime_lookup_function and refactor WASMModuleInstance (#3218) 2024-03-13 12:28:45 +08:00
export_native_api.md Refactor APIs and data structures as preliminary work for Memory64 (#3209) 2024-03-12 11:38:50 +08:00
linux_sgx.md linux-sgx: Implement SGX IPFS as POSIX backend for file interaction (#1489) 2022-09-28 13:09:58 +08:00
memory_tune.md doc/memory_tune.md: "remove malloc" hack is not relevant to wasi-threads (#2603) 2023-09-28 09:27:33 +08:00
memory_usage.md Always allocate linear memory using mmap (#3052) 2024-02-02 22:17:44 +08:00
multi_module.md Remove unused argument in wasm_runtime_lookup_function and refactor WASMModuleInstance (#3218) 2024-03-13 12:28:45 +08:00
other_wasm_compilers.md Implement performance profiler and call stack dump, and update toolchain document (#501) 2021-01-18 13:23:10 +08:00
perf_tune.md trans_wasm_func_name.py: Correct function index during translation (#3232) 2024-03-18 10:32:55 +08:00
port_wamr.md Enable specifying out-of-source platform configuration cmake file (#1941) 2023-02-07 22:10:59 +08:00
pthread_impls.md Document the summary of two pthread implementations (#2104) 2023-04-04 17:22:54 +08:00
pthread_library.md Document the summary of two pthread implementations (#2104) 2023-04-04 17:22:54 +08:00
ref_types.md Refactor externref related APIs of reference types feature (#971) 2022-01-19 11:25:08 +08:00
release_ack.md Enable multi-module support for wasm-c-api (#426) 2020-10-16 17:43:57 +08:00
roadmap.md Enable multi-module support for wasm-c-api (#426) 2020-10-16 17:43:57 +08:00
semantic_version.md Enable the semantic version mechanism for WAMR (#1374) 2022-08-18 19:01:05 +08:00
socket_api.md Fix typos of CIDR in docs and help text (#2851) 2023-12-04 11:38:54 +08:00
source_debugging_aot.md doc: Separate source_debugging.md into two files (#2932) 2023-12-27 15:51:51 +08:00
source_debugging_interpreter.md doc: Separate source_debugging.md into two files (#2932) 2023-12-27 15:51:51 +08:00
source_debugging.md doc: Separate source_debugging.md into two files (#2932) 2023-12-27 15:51:51 +08:00
wasm_c_api.md doc/wasm_c_api.md: Mention relationship with wasm_export.h (#1159) 2022-05-09 16:39:49 +08:00
xip.md Add "--enable-builtin-intrinsics=<flags>" option to wamrc (#2341) 2023-07-06 18:20:35 +08:00