File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,7 @@ wasm_engine_new_internal(wasm_config_t *config)
393
393
WASM_C_DUMP_PROC_MEM ();
394
394
395
395
/* wasm_config_t->MemAllocOption -> RuntimeInitArgs->MemAllocOption */
396
+ init_args .gc_heap_size = GC_HEAP_SIZE_DEFAULT ;
396
397
init_args .mem_alloc_type = config -> mem_alloc_type ;
397
398
memcpy (& init_args .mem_alloc_option , & config -> mem_alloc_option ,
398
399
sizeof (MemAllocOption ));
Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ if (WAMR_BUILD_GC_CORRUPTION_CHECK EQUAL 0)
24
24
add_definitions (-DBH_ENABLE_GC_CORRUPTION_CHECK=0 )
25
25
endif ()
26
26
27
+ if (DEFINED WAMR_BUILD_GC_HEAP_SIZE_DEFAULT )
28
+ add_definitions ("-DGC_HEAP_SIZE_DEFAULT=${WAMR_BUILD_GC_HEAP_SIZE_DEFAULT} " )
29
+ endif ()
30
+
27
31
file (GLOB_RECURSE source_all
28
32
${MEM_ALLOC_DIR} /ems/*.c
29
33
${MEM_ALLOC_DIR} /tlsf/*.c
You can’t perform that action at this time.
0 commit comments