wasm-micro-runtime/core/iwasm/libraries
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
..
debug-engine Fix warnings/issues reported in Windows and by CodeQL/Coverity (#3275) 2024-04-07 11:57:31 +08:00
lib-pthread Support more features for rt-thread (#3661) 2024-07-26 10:34:15 +08:00
lib-rats Clarify how to verify SGX evidence without an Intel SGX-enabled platform (#3158) 2024-02-17 18:44:22 +08:00
lib-socket Specify language in the wasi socket ext project (#3183) 2024-02-28 19:35:00 +08:00
lib-wasi-threads Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
libc-builtin libc-builtin: Fix function prototype for wasm_runtime_module_realloc (#3702) 2024-08-13 17:44:58 +08:00
libc-emcc libc-emcc: Use alternate method to check getrandom support (#3848) 2024-10-10 10:57:47 +08:00
libc-uvwasi Refactor APIs and data structures as preliminary work for Memory64 (#3209) 2024-03-12 11:38:50 +08:00
libc-wasi Enable libc-wasi for windows msvc build (#3852) 2024-10-14 09:52:25 +08:00
shared-heap Implement shared heap for AOT (#3815) 2024-09-29 12:50:59 +08:00
thread-mgr Implement shared heap for AOT (#3815) 2024-09-29 12:50:59 +08:00
wasi-nn Fix compilation error found in tflite test (#3820) 2024-10-08 09:54:39 +08:00