Add printingAdd print time for wamrc, fix posix mmap bug time for wamrc, fixed a posix mmap bug. (#206)

Change-Id: Ib6517b8a69cf022a1a6a74efa1f98155aec143bc
This commit is contained in:
Shi Lei
2020-03-20 16:06:40 +08:00
committed by GitHub
parent e07381c4a8
commit b6cae54b54
6 changed files with 61 additions and 1 deletions

View File

@ -43,7 +43,7 @@ os_mmap(void *hint, uint32 size, int prot, int flags)
/* try 5 times */
for (i = 0; i < 5; i ++) {
addr = mmap(hint, size, map_prot, map_flags, -1, 0);
addr = mmap(hint, request_size, map_prot, map_flags, -1, 0);
if (addr != MAP_FAILED)
break;
}