Does ggc-page.c require MMAP_DEV_ZERO and MMAP_ANON?

H. J. Lu hjl@lucon.org
Mon Jun 23 21:07:00 GMT 2003


On Mon, Jun 23, 2003 at 09:21:15AM -0700, Zack Weinberg wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
> 
> > checking for working mmap from /dev/zero... no
> > checking for working mmap with MAP_ANON(YMOUS)... no
> >
> > As the result, I had
> >
> > /* #undef HAVE_MMAP_DEV_ZERO */
> > /* #undef HAVE_MMAP_ANON */
> > #define HAVE_MMAP_FILE 1
> >
> > in auto-host.h. Apparently, ggc-page.c doesn't work too well with
> > this configuration.
> 
> This would be xvalloc mode, which is _supposed_ to work, but is rarely
> if ever tested.  Can you try to debug it a bit more?
> 

I can no longer duplicate the problem. It must be a very tricky bug.
I didn't notice mmap was not used for several weeks and there were
no problems. It must be a very rare case.


H.J.



More information about the Gcc mailing list