This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: overhaul of anonymous mmap detection
On Thu, Jan 11, 2001 at 10:32:07PM +0200, Laurynas Biveinis wrote:
> On Thu, Jan 11, 2001 at 09:45:58AM -0800, Zack Weinberg wrote:
> > * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Completely rewritten.
> > Now defines HAVE_MMAP_DEV_ZERO and/or HAVE_MMAP_ANON depending
> > which you have.
> > (AC_FUNC_MMAP_FILE): Don't AC_REQUIRE AC_FUNC_MMAP_ANYWHERE.
> > * configure.in: Set GGC to ggc-page if any of mmap_dev_zero,
> > mmap_anon, and valloc is available.
> > * ggc-page.c: Restructure ifdef logic to match new autoconf
> > spec. Don't throw away the test page in init_ggc.
> >
> > * configure, config.in: Regenerate.
>
> Zack, maybe I could try to incorporate these changes into recently
> resubmitted xvalloc() patch of mine instead? This would save
> me some time and I really would like to see xvalloc() in 3.0.
As I said previously, xvalloc should not use mmap at all, only valloc
or malloc.
zw