This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]