Re: Unnecessary limitation on munmap?

2024-12-21 Thread Ken Brown
Hi Mark, On 12/21/2024 5:15 PM, Mark Geisert wrote: Hi Ken, On 12/21/2024 1:42 PM, Ken Brown wrote: I'm wondering why munmap insists on operating with chunks of size 64k instead of pages of size 4k.  In other words, what would go wrong if we did the following: --- a/winsup/cygwin/mm/mmap.cc

Re: Unnecessary limitation on munmap?

2024-12-21 Thread Mark Geisert
Hi Ken, On 12/21/2024 1:42 PM, Ken Brown wrote: I'm wondering why munmap insists on operating with chunks of size 64k instead of pages of size 4k.  In other words, what would go wrong if we did the following: --- a/winsup/cygwin/mm/mmap.cc +++ b/winsup/cygwin/mm/mmap.cc @@ -1143,7 +1143,7 @@

Unnecessary limitation on munmap?

2024-12-21 Thread Ken Brown
I'm wondering why munmap insists on operating with chunks of size 64k instead of pages of size 4k. In other words, what would go wrong if we did the following: --- a/winsup/cygwin/mm/mmap.cc +++ b/winsup/cygwin/mm/mmap.cc @@ -1143,7 +1143,7 @@ munmap (void *addr, size_t len) set_errno (