wasm-micro-runtime/core/iwasm/aot
Wenyong Huang b038f2721b
Merge pull request #3823 from bytecodealliance/dev/shared_heap
Implement the shared heap feature for interpreter, aot and llvm jit.
Add below runtime APIs:
```C
wasm_shared_heap_t
wasm_runtime_create_shared_heap(SharedHeapInitArgs *init_args);

bool
wasm_runtime_attach_shared_heap(wasm_module_inst_t module_inst,
                                wasm_shared_heap_t shared_heap);

void
wasm_runtime_detach_shared_heap(wasm_module_inst_t module_inst);

uint64_t
wasm_runtime_shared_heap_malloc(wasm_module_inst_t module_inst, uint64_t size,
                                void **p_native_addr);

void
wasm_runtime_shared_heap_free(wasm_module_inst_t module_inst, uint64_t ptr);
```

And allow wasm app to call API shared_heap_malloc and shared_heap_free:
```C
void *shared_heap_malloc(uint32_t size);
void shared_heap_free(void *ptr);
```
2024-10-15 14:26:22 +08:00
..
arch Fix missing symbols when using aot mode on riscv platforms (#3812) 2024-09-28 21:55:09 +08:00
debug Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
aot_intrinsic.c Fix some more spelling issues (#3393) 2024-05-08 09:30:29 +08:00
aot_intrinsic.h Add cmake flag to control aot intrinsics (#3261) 2024-04-01 11:26:05 +08:00
aot_loader.c Enable libc-wasi for windows msvc build (#3852) 2024-10-14 09:52:25 +08:00
aot_perf_map.c Enhance wasm loading with LoadArgs and support module names (#3265) 2024-04-07 15:04:35 +08:00
aot_perf_map.h Enhance wasm loading with LoadArgs and support module names (#3265) 2024-04-07 15:04:35 +08:00
aot_reloc.h Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
aot_runtime.c Merge pull request #3823 from bytecodealliance/dev/shared_heap 2024-10-15 14:26:22 +08:00
aot_runtime.h Implement shared heap for AOT (#3815) 2024-09-29 12:50:59 +08:00
iwasm_aot.cmake Fix windows AOT hw bound check (#2475) 2023-08-18 10:16:03 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00