[RFA] Second try a fixing cygwin/win9x mmap problem

Neil Booth neil@daikokuya.demon.co.uk
Sun Jan 13 23:45:00 GMT 2002


Christopher Faylor wrote:-

> On Sun, Jan 13, 2002 at 08:20:31PM -0800, Richard Henderson wrote:
> >On Sun, Jan 13, 2002 at 08:27:39PM -0500, Christopher Faylor wrote:
> >> I did make one gratuitous change to the algorithm for detecting when the
> >> file should be mapped.  I used a single multiply rather than a divide
> >> and a modulo operation.  Maybe I missed something but this seems
> >> slightly more efficient.  If I did miss something, I'll be happy to
> >> revert this change.
> >
> >mmap is not used when the file size is an exact multiple of the page size.
> 
> Ok.  I've replaced my bogus test with the correct one.
> 
> Ok to check in?

Could you post the updated patch?

Neil.



More information about the Gcc-patches mailing list