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
..
2024-06-19 16:51:44 +08:00
2024-07-12 16:43:22 +08:00
2024-10-11 21:14:56 +08:00
2024-10-11 21:14:56 +08:00
2024-09-11 16:08:37 +08:00
2024-06-14 15:57:45 +08:00
2024-02-06 20:47:11 +08:00
2024-02-06 20:47:11 +08:00
2024-08-16 14:04:41 +08:00
2021-10-13 15:13:00 +08:00
2024-09-10 09:05:23 +08:00
2024-02-06 20:47:11 +08:00
2023-01-12 12:05:53 +08:00
2021-10-13 15:13:00 +08:00
2024-09-05 21:44:06 +08:00
2021-10-13 15:13:00 +08:00
2024-10-11 21:14:56 +08:00
2024-02-06 20:47:11 +08:00
2024-05-08 09:30:29 +08:00
2024-02-06 20:47:11 +08:00
2024-09-29 12:50:59 +08:00
2024-06-22 10:32:52 +08:00
2024-05-14 10:06:48 +08:00
2021-10-13 15:13:00 +08:00
2024-02-06 20:47:11 +08:00
2021-10-13 15:13:00 +08:00
2024-02-06 20:47:11 +08:00
2024-02-06 20:47:11 +08:00
2024-10-11 21:14:56 +08:00
2024-01-10 18:37:02 +08:00
2024-05-10 09:15:58 +08:00
2021-10-13 15:13:00 +08:00
2024-01-30 20:50:33 +08:00
2024-01-30 20:50:33 +08:00
2024-08-16 10:12:23 +08:00
2024-09-29 12:50:59 +08:00
2024-09-29 12:50:59 +08:00
2024-05-08 09:30:29 +08:00
2024-07-12 16:43:22 +08:00
2024-05-08 09:30:29 +08:00
2024-09-11 16:08:37 +08:00
2024-09-10 09:05:23 +08:00
2024-09-10 09:05:23 +08:00
2024-08-21 12:22:23 +08:00
2024-09-10 09:42:23 +08:00
2021-11-30 17:10:14 +08:00