mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-07 12:16:24 +00:00
Move the default heap size initialization
This commit is contained in:
parent
de82d1946f
commit
d609acf1ee
|
@ -392,7 +392,6 @@ wasm_engine_new_internal(wasm_config_t *config)
|
|||
|
||||
WASM_C_DUMP_PROC_MEM();
|
||||
|
||||
init_args.gc_heap_size = GC_HEAP_SIZE_DEFAULT;
|
||||
/* wasm_config_t->MemAllocOption -> RuntimeInitArgs->MemAllocOption */
|
||||
init_args.mem_alloc_type = config->mem_alloc_type;
|
||||
memcpy(&init_args.mem_alloc_option, &config->mem_alloc_option,
|
||||
|
|
|
@ -757,7 +757,10 @@ wasm_runtime_full_init_internal(RuntimeInitArgs *init_args)
|
|||
#endif
|
||||
|
||||
#if WASM_ENABLE_GC != 0
|
||||
gc_heap_size_default = init_args->gc_heap_size;
|
||||
uint32 gc_heap_size = init_args->gc_heap_size;
|
||||
if (gc_heap_size > 0) {
|
||||
gc_heap_size_default = gc_heap_size;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if WASM_ENABLE_JIT != 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user