Move the default heap size initialization

This commit is contained in:
Jesse Wilson
2025-03-04 18:43:30 -05:00
parent de82d1946f
commit d609acf1ee
2 changed files with 4 additions and 2 deletions

View File

@ -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