Expose WAMR_BUILD_GC_HEAP_SIZE_DEFAULT as a CMake option
This is wired through to the GC_HEAP_SIZE_DEFAULT constant. Also honor this value when configuring the engine with the wasm_c_api.
This commit is contained in:
@ -393,6 +393,7 @@ wasm_engine_new_internal(wasm_config_t *config)
|
||||
WASM_C_DUMP_PROC_MEM();
|
||||
|
||||
/* wasm_config_t->MemAllocOption -> RuntimeInitArgs->MemAllocOption */
|
||||
init_args.gc_heap_size = GC_HEAP_SIZE_DEFAULT;
|
||||
init_args.mem_alloc_type = config->mem_alloc_type;
|
||||
memcpy(&init_args.mem_alloc_option, &config->mem_alloc_option,
|
||||
sizeof(MemAllocOption));
|
||||
|
||||
Reference in New Issue
Block a user