Skip to content

Commit 851a26d

Browse files
TianlongLiangloganek
authored andcommitted
cr suggestions
1 parent e72338b commit 851a26d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

core/shared/platform/common/posix/posix_memmap.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,6 @@ os_mprotect(void *addr, size_t size, int prot)
270270
int map_prot = PROT_NONE;
271271
uint64 page_size = (uint64)getpagesize();
272272
uint64 request_size = (size + page_size - 1) & ~(page_size - 1);
273-
// printf("mprotect addr: %p, size: %llu, prot: %d\n", addr, request_size,
274-
// prot);
275273

276274
if (!addr)
277275
return 0;
@@ -285,10 +283,6 @@ os_mprotect(void *addr, size_t size, int prot)
285283
if (prot & MMAP_PROT_EXEC)
286284
map_prot |= PROT_EXEC;
287285

288-
if (mprotect(addr, request_size, map_prot) == -1) {
289-
printf("mprotect failed\n");
290-
}
291-
292286
return mprotect(addr, request_size, map_prot);
293287
}
294288

0 commit comments

Comments
 (0)