This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wasm-micro-runtime/build-scripts
Andy 3e8927a31b
Adding option to pass user data to allocator functions (#1765)
Add an option to pass user data to the allocator functions. It is common to
do this so that the host embedder can pass a struct as user data and access
that struct from the allocator, which gives the host embedder the ability to
do things such as track allocation statistics within the allocator.

Compile with `cmake -DWASM_MEM_ALLOC_WITH_USER_DATA=1` to enable
the option, and the allocator functions provided by the host embedder should
be like below (an extra argument `data` is added):
void *malloc(void *data, uint32 size) { .. }
void *realloc(void *data, uint32 size) { .. }
void free(void *data, void *ptr) { .. }

Signed-off-by: Andrew Chambers <ncham@amazon.com>
2022-11-30 16:19:18 +08:00
..
esp-idf ESP IDF fixes (#927) 2022-01-05 12:50:17 +08:00
build_llvm.py Update xtensa LLVM version to 15.x (#1741) 2022-11-24 12:48:31 +08:00
config_common.cmake Adding option to pass user data to allocator functions (#1765) 2022-11-30 16:19:18 +08:00
lldb-wasm.patch Add CIs to release new version and publish binary files (#1648) 2022-10-28 13:55:41 +08:00
runtime_lib.cmake Refactor interpreter/AOT module instance layout (#1559) 2022-10-18 10:59:28 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00
SConscript_config Add control for the native stack check with hardware trap (#1682) 2022-11-07 18:26:33 +08:00