wasm-micro-runtime/core/iwasm/common
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 clang compile warnings (#3396) 2024-05-08 16:43:47 +08:00
gc Modify logging for windows exception handler and remove unused function (#3489) 2024-05-31 13:07:56 +08:00
iwasm_common.cmake Add support for universal binaries on OSX (#2060) 2023-03-30 09:53:07 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00
wasm_application.c wasm_application.c: Avoid null pointer dereference (#3620) 2024-07-12 16:59:59 +08:00
wasm_blocking_op.c Implement async termination of blocking thread (#2516) 2023-09-20 18:11:52 +08:00
wasm_c_api_internal.h Fix some spelling issues (#3385) 2024-05-06 07:56:48 +08:00
wasm_c_api.c Add APIs into wasm_c_api.h to summary wasm function execution duration (#3639) 2024-07-23 16:34:47 +08:00
wasm_exec_env.c Fix some spelling issues (#3385) 2024-05-06 07:56:48 +08:00
wasm_exec_env.h thread mgr: Free aux stack only when it was allocated (#3282) 2024-04-08 09:06:49 +08:00
wasm_loader_common.c Support table64 extension in classic-interp and AOT running modes (#3811) 2024-10-11 21:14:56 +08:00
wasm_loader_common.h Support table64 extension in classic-interp and AOT running modes (#3811) 2024-10-11 21:14:56 +08:00
wasm_memory.c Fix issues of destroy_shared_heaps (#3847) 2024-10-10 10:56:36 +08:00
wasm_memory.h Implement shared heap for AOT (#3815) 2024-09-29 12:50:59 +08:00
wasm_native.c Implement a first version of shared heap feature (#3789) 2024-09-14 10:51:42 +08:00
wasm_native.h Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
wasm_runtime_common.c Merge pull request #3823 from bytecodealliance/dev/shared_heap 2024-10-15 14:26:22 +08:00
wasm_runtime_common.h Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
wasm_shared_memory.c Implement shared heap for AOT (#3815) 2024-09-29 12:50:59 +08:00
wasm_shared_memory.h Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
wasm_suspend_flags.h Do not inherit WASM_SUSPEND_FLAG_BLOCKING from the parent thread (#3051) 2024-01-19 09:55:01 +08:00