This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Speeding up ggc-simple on stage1
- To: Geoff Keating <geoffk at cygnus dot com>
- Subject: Re: Speeding up ggc-simple on stage1
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 16 Jan 2000 21:51:16 -0700
- cc: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>, gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <jmg0vx8tcy.fsf@envy.cygnus.com>you write:
> > Another possibility, taken by Kaffe as a fallback, is to always
> > request for one page more than the requested size, and to choose a
> > page-aligned address within the returned block. It might work to
> > realloc afterwards to release any remaining bytes after the page we
> > wanted, as long as realloc doesn't decide to move the block around.
> > But we'd be wasting the bytes before the beginning of a page.
>
> We couldn't fix this by, say, allocating 32 pages at a time?
And with a number of valloc implementations out there you'll actually end
up allocating 64 pages when the application tries to allocate 32 pages!
jeff