mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-07 12:16:24 +00:00
Address code review feedback
This commit is contained in:
parent
beb34c3675
commit
de82d1946f
|
@ -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));
|
||||
|
|
|
@ -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**
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user