From: Razvan Deaconescu Date: Fri, 20 Oct 2023 15:23:20 +0000 (+0300) Subject: Add patch to use global heap buffer X-Git-Tag: RELEASE-0.15.0~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4dc7cce3e738361ee2ec52048cf517765696fe8d;p=unikraft%2Flibs%2Fwamr.git Add patch to use global heap buffer Define the global variable `USE_GLOBAL_HEAP_BUF` as `1`. This is required to properly allocate memory for Unikraft. Signed-off-by: Razvan Deaconescu Reviewed-by: Stefan Jumarea Approved-by: Stefan Jumarea GitHub-Closes: #9 --- diff --git a/patches/0005-use-global-heap-buf.patch b/patches/0005-use-global-heap-buf.patch new file mode 100644 index 0000000..ec671f8 --- /dev/null +++ b/patches/0005-use-global-heap-buf.patch @@ -0,0 +1,11 @@ +--- a/core/iwasm/products/linux/main.c ++++ b/core/iwasm/products/linux/main.c +@@ -158,7 +158,7 @@ app_instance_repl(wasm_module_inst_t module_inst) + return NULL; + } + +-#define USE_GLOBAL_HEAP_BUF 0 ++#define USE_GLOBAL_HEAP_BUF 1 + + #if USE_GLOBAL_HEAP_BUF != 0 + static char global_heap_buf[10 * 1024 * 1024] = { 0 };