From 851a26dbba050798427e9c547ef54a66e8c3e20e Mon Sep 17 00:00:00 2001 From: TL Date: Tue, 18 Feb 2025 16:35:42 +0800 Subject: [PATCH] cr suggestions --- core/shared/platform/common/posix/posix_memmap.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/shared/platform/common/posix/posix_memmap.c b/core/shared/platform/common/posix/posix_memmap.c index 7f54c5706..d5cad885c 100644 --- a/core/shared/platform/common/posix/posix_memmap.c +++ b/core/shared/platform/common/posix/posix_memmap.c @@ -270,8 +270,6 @@ os_mprotect(void *addr, size_t size, int prot) int map_prot = PROT_NONE; uint64 page_size = (uint64)getpagesize(); uint64 request_size = (size + page_size - 1) & ~(page_size - 1); - // printf("mprotect addr: %p, size: %llu, prot: %d\n", addr, request_size, - // prot); if (!addr) return 0; @@ -285,10 +283,6 @@ os_mprotect(void *addr, size_t size, int prot) if (prot & MMAP_PROT_EXEC) map_prot |= PROT_EXEC; - if (mprotect(addr, request_size, map_prot) == -1) { - printf("mprotect failed\n"); - } - return mprotect(addr, request_size, map_prot); }