Implement shared heap for AOT (#3815)
This commit is contained in:
@ -8,11 +8,11 @@
|
||||
#include <stdio.h>
|
||||
|
||||
extern void
|
||||
shared_free(void *ptr);
|
||||
shared_heap_free(void *ptr);
|
||||
|
||||
void
|
||||
print_buf(char *buf)
|
||||
{
|
||||
printf("wasm app2's wasm func received buf: %s\n\n", buf);
|
||||
shared_free(buf);
|
||||
shared_heap_free(buf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user