On Jan 8 18:04, Ken Brown wrote: > From c01da9db1e76869621b63f8075505fa49acf0d56 Mon Sep 17 00:00:00 2001 > From: Ken Brown <kbr...@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 <kbr...@cornell.edu> > --- > winsup/cygwin/mm/mmap.cc | 30 ++++++++++++++---------------- > 1 file changed, 14 insertions(+), 16 deletions(-)
LGTM. Thanks, Corinna