Преглед изворни кода

Address code review feedback

Jesse Wilson пре 10 месеци
родитељ
комит
de82d1946f
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 1
      core/iwasm/common/wasm_c_api.c
  2. 1 0
      doc/build_wamr.md

+ 1 - 1
core/iwasm/common/wasm_c_api.c

@@ -392,8 +392,8 @@ 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;
+    /* 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,
            sizeof(MemAllocOption));

+ 1 - 0
doc/build_wamr.md

@@ -141,6 +141,7 @@ cmake -DWAMR_BUILD_PLATFORM=linux -DWAMR_BUILD_TARGET=ARM
 
 ### **Enable Garbage Collection**
 - **WAMR_BUILD_GC**=1/0, default to disable if not set
+- **WAMR_BUILD_GC_HEAP_SIZE_DEFAULT**=n, default to 128 kB (131072) if not set
 
 ### **Configure Debug**