From f1ffbb5b37704991206b5f0fc1ff50cde7e12cfb Mon Sep 17 00:00:00 2001 From: TL Date: Wed, 12 Feb 2025 16:42:25 +0800 Subject: [PATCH] cr suggestions --- core/iwasm/common/wasm_memory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/iwasm/common/wasm_memory.c b/core/iwasm/common/wasm_memory.c index 8e008f11..1f942ec6 100644 --- a/core/iwasm/common/wasm_memory.c +++ b/core/iwasm/common/wasm_memory.c @@ -1255,6 +1255,8 @@ wasm_mremap_linear_memory(void *mapped_mem, uint64 old_size, uint64 new_size, #if UINTPTR_MAX == UINT32_MAX if (new_size == 4 * (uint64)BH_GB) { + LOG_WARNING("On 32 bit platform, linear memory can't reach maximum " + "size of 4GB\n"); return NULL; } #endif