Skip to content

Commit de82d19

Browse files
committed
Address code review feedback
1 parent beb34c3 commit de82d19

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/iwasm/common/wasm_c_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ wasm_engine_new_internal(wasm_config_t *config)
392392

393393
WASM_C_DUMP_PROC_MEM();
394394

395-
/* wasm_config_t->MemAllocOption -> RuntimeInitArgs->MemAllocOption */
396395
init_args.gc_heap_size = GC_HEAP_SIZE_DEFAULT;
396+
/* wasm_config_t->MemAllocOption -> RuntimeInitArgs->MemAllocOption */
397397
init_args.mem_alloc_type = config->mem_alloc_type;
398398
memcpy(&init_args.mem_alloc_option, &config->mem_alloc_option,
399399
sizeof(MemAllocOption));

doc/build_wamr.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ cmake -DWAMR_BUILD_PLATFORM=linux -DWAMR_BUILD_TARGET=ARM
141141
142142
### **Enable Garbage Collection**
143143
- **WAMR_BUILD_GC**=1/0, default to disable if not set
144+
- **WAMR_BUILD_GC_HEAP_SIZE_DEFAULT**=n, default to 128 kB (131072) if not set
144145

145146
### **Configure Debug**
146147

0 commit comments

Comments
 (0)