[PATCH 4/5] Cygwin: mmap_list::try_map: simplify
Corinna Vinschen
corinna-cygwin@cygwin.com
Thu Jan 9 18:58:05 GMT 2025
On Jan 8 18:04, Ken Brown wrote:
> From c01da9db1e76869621b63f8075505fa49acf0d56 Mon Sep 17 00:00:00 2001
> From: Ken Brown <kbrown@cornell.edu>
> Date: Sun, 29 Dec 2024 18:20:07 -0500
> Subject: [PATCH 4/5] Cygwin: mmap_list::try_map: simplify
>
> Save the result of mmap_record::find_unused pages, and then pass that
> result to the appropriate version of mmap_record::map_pages. Add a
> new parameter of type off_t to the latter to make this possible, and
> change its return from off_t to bool. This saves map_pages from
> having to call find_unused_pages again.
>
> Signed-off-by: Ken Brown <kbrown@cornell.edu>
> ---
> winsup/cygwin/mm/mmap.cc | 30 ++++++++++++++----------------
> 1 file changed, 14 insertions(+), 16 deletions(-)
LGTM.
Thanks,
Corinna
More information about the Cygwin-patches
mailing list