cvs commit: src/lib/libc/stdlib malloc.c

Jason Evans jasone at
Sun Mar 19 18:28:07 UTC 2006

jasone      2006-03-19 18:28:07 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdlib      malloc.c 
  Optimize realloc() to reallocate in place if the old and new sizes are
  close enough to each other that reallocation would allocate a new region
  of the same size.  This improves the performance of repeated incremental
  reallocations by up to three orders of magnitude. [1]
  Fix arena_new() to properly constrain run size if a small chunk size was
  specified during runtime configuration.
  Suggested by:   se [1]
  Revision  Changes    Path
  1.113     +167 -105  src/lib/libc/stdlib/malloc.c

More information about the cvs-src mailing list