Skip to content

Commit 6cb1f70

Browse files
committed
log warning instaed of assertion
1 parent d32516e commit 6cb1f70

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

core/iwasm/aot/aot_loader.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,10 @@ loader_mmap(uint32 size, bool prot_exec, char *error_buf, uint32 error_buf_size)
320320
/* Test whether the mmapped memory in the first 2 Gigabytes of the
321321
process address space */
322322
if ((uintptr_t)mem < INT32_MAX)
323-
LOG_WARNING(
324-
"Warning: loader mmap memory address is not in the first 2 "
325-
"Gigabytes of the process address space.");
326-
return mem;
323+
return mem;
327324
}
325+
LOG_WARNING("Warning: loader mmap memory address is not in the first 2 "
326+
"Gigabytes of the process address space.");
328327
#endif
329328
#endif
330329

0 commit comments

Comments
 (0)