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]

Re: Speeding up ggc-simple on stage1


  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


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